This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
2023-02-11 08:12:41 +00:00
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
package v1_19 //nolint
|
|
|
|
|
|
|
|
import (
|
|
|
|
"xorm.io/xorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// AddCardTypeToProjectTable: add CardType column, setting existing rows to CardTypeTextOnly
|
|
|
|
func AddCardTypeToProjectTable(x *xorm.Engine) error {
|
|
|
|
type Project struct {
|
2023-02-11 21:28:41 +00:00
|
|
|
CardType int `xorm:"NOT NULL DEFAULT 0"`
|
2023-02-11 08:12:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return x.Sync(new(Project))
|
|
|
|
}
|