gitea源码

v241.go 383B

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