code.gitea.io/gitea@v1.21.7/models/migrations/v1_19/v241.go (about) 1 // Copyright 2022 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package v1_19 //nolint 5 6 import ( 7 "xorm.io/xorm" 8 ) 9 10 // AddCardTypeToProjectTable: add CardType column, setting existing rows to CardTypeTextOnly 11 func AddCardTypeToProjectTable(x *xorm.Engine) error { 12 type Project struct { 13 CardType int `xorm:"NOT NULL DEFAULT 0"` 14 } 15 16 return x.Sync(new(Project)) 17 }