summaryrefslogtreecommitdiffstats
path: root/models/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations')
-rw-r--r--models/migrations/v216.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/models/migrations/v216.go b/models/migrations/v216.go
index b011c11d95..67c360016d 100644
--- a/models/migrations/v216.go
+++ b/models/migrations/v216.go
@@ -42,26 +42,5 @@ func (a *improveActionTableIndicesAction) TableIndices() []*schemas.Index {
}
func improveActionTableIndices(x *xorm.Engine) error {
- {
- type Action struct {
- ID int64 `xorm:"pk autoincr"`
- UserID int64 `xorm:"INDEX"` // Receiver user id.
- OpType int
- ActUserID int64 `xorm:"INDEX"` // Action user id.
- RepoID int64 `xorm:"INDEX"`
- CommentID int64 `xorm:"INDEX"`
- IsDeleted bool `xorm:"INDEX NOT NULL DEFAULT false"`
- RefName string
- IsPrivate bool `xorm:"INDEX NOT NULL DEFAULT false"`
- Content string `xorm:"TEXT"`
- CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
- }
- if err := x.Sync2(&Action{}); err != nil {
- return err
- }
- if err := x.DropIndexes(&Action{}); err != nil {
- return err
- }
- }
return x.Sync2(&improveActionTableIndicesAction{})
}