Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 01:44:24 +01:00

Fix migration issue. (#22867)

See:
https://github.com/go-gitea/gitea/pull/22112#issuecomment-1426872992
This commit is contained in:
Nathaniel Sabanski 2023-02-11 13:28:41 -08:00 committed by GitHub
parent 9057a008a1
commit d4a9b35c4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))