Add new fields into matter. Remove migrate20To30.

This commit is contained in:
zicla
2020-03-16 01:44:27 +08:00
parent 4611defe36
commit 7ff7907e11
8 changed files with 25 additions and 253 deletions

View File

@ -41,6 +41,7 @@ type Matter struct {
Times int64 `json:"times" gorm:"type:bigint(20) not null;default:0"`
Parent *Matter `json:"parent" gorm:"-"`
Children []*Matter `json:"-" gorm:"-"`
Prop string `json:"prop" gorm:"type:varchar(1024) not null;default:''{}''"`
}
// set File's table name to be `profiles`