diff options
-rw-r--r-- | models/migrations/v1_19/v241.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v1_19/v241.go b/models/migrations/v1_19/v241.go index 332be580fa..a617d6fd2f 100644 --- a/models/migrations/v1_19/v241.go +++ b/models/migrations/v1_19/v241.go @@ -10,7 +10,7 @@ import ( // AddCardTypeToProjectTable: add CardType column, setting existing rows to CardTypeTextOnly func AddCardTypeToProjectTable(x *xorm.Engine) error { type Project struct { - CardType int `xorm:"NOT NULL"` + CardType int `xorm:"NOT NULL DEFAULT 0"` } return x.Sync(new(Project)) |