mirror of https://gitee.com/answerdev/answer.git
14 lines
282 B
Go
14 lines
282 B
Go
|
package migrations
|
||
|
|
||
|
import (
|
||
|
"xorm.io/xorm"
|
||
|
)
|
||
|
|
||
|
func addTagRecommendedAndReserved(x *xorm.Engine) error {
|
||
|
type Tag struct {
|
||
|
Recommend bool `xorm:"not null default false BOOL recommend"`
|
||
|
Reserved bool `xorm:"not null default false BOOL reserved"`
|
||
|
}
|
||
|
return x.Sync(new(Tag))
|
||
|
}
|