We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9057a00 commit d4a9b35Copy full SHA for d4a9b35
models/migrations/v1_19/v241.go
@@ -10,7 +10,7 @@ import (
10
// AddCardTypeToProjectTable: add CardType column, setting existing rows to CardTypeTextOnly
11
func AddCardTypeToProjectTable(x *xorm.Engine) error {
12
type Project struct {
13
- CardType int `xorm:"NOT NULL"`
+ CardType int `xorm:"NOT NULL DEFAULT 0"`
14
}
15
16
return x.Sync(new(Project))
0 commit comments