aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-23 16:31:13 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-23 16:31:13 +0800
commit1201c6a9b4897736650a4b416451aa521024b899 (patch)
treeff1df6bce9776b589eefd74593092777bace5885 /models
parent17da2fd2e30e85909394bc58069ecab14d8d8577 (diff)
bug fixed & more commits for push
Diffstat (limited to 'models')
-rw-r--r--models/action.go2
-rw-r--r--models/models.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go
index 107d4b10..d338da24 100644
--- a/models/action.go
+++ b/models/action.go
@@ -28,7 +28,7 @@ type Action struct {
ActUserName string // Action user name.
RepoId int64
RepoName string
- Content string
+ Content string `xorm:"varchar(1000)"`
Created time.Time `xorm:"created"`
}
diff --git a/models/models.go b/models/models.go
index 8713ff28..7f5f626f 100644
--- a/models/models.go
+++ b/models/models.go
@@ -91,5 +91,5 @@ func GetStatistic() (stats Statistic) {
stats.Counter.Watch, _ = orm.Count(new(Watch))
stats.Counter.Action, _ = orm.Count(new(Action))
stats.Counter.Access, _ = orm.Count(new(Access))
- return stats
+ return
}