diff options
author | Nathaniel Sabanski | 2023-02-11 13:28:41 -0800 |
---|---|---|
committer | GitHub | 2023-02-11 21:28:41 +0000 |
commit | d4a9b35c4be7cd28f8a2f7a3f1ad7b784eb71f5e (patch) | |
tree | 773be18a05d1a5ab5747f24e14d4cd4a03f7d8d7 /models | |
parent | 9057a008a1019144611aa9e3fd53a5e3a404c389 (diff) |
Fix migration issue. (#22867)
See:
https://github.com/go-gitea/gitea/pull/22112#issuecomment-1426872992
Diffstat (limited to 'models')
-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 332be580f..a617d6fd2 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)) |