From d4a9b35c4be7cd28f8a2f7a3f1ad7b784eb71f5e Mon Sep 17 00:00:00 2001 From: Nathaniel Sabanski Date: Sat, 11 Feb 2023 13:28:41 -0800 Subject: [PATCH] Fix migration issue. (#22867) See: https://github.com/go-gitea/gitea/pull/22112#issuecomment-1426872992 --- models/migrations/v1_19/v241.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))