Skip to content

Commit d4a9b35

Browse files
authored
Fix migration issue. (#22867)
See: #22112 (comment)
1 parent 9057a00 commit d4a9b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/migrations/v1_19/v241.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
// AddCardTypeToProjectTable: add CardType column, setting existing rows to CardTypeTextOnly
1111
func AddCardTypeToProjectTable(x *xorm.Engine) error {
1212
type Project struct {
13-
CardType int `xorm:"NOT NULL"`
13+
CardType int `xorm:"NOT NULL DEFAULT 0"`
1414
}
1515

1616
return x.Sync(new(Project))

0 commit comments

Comments
 (0)