You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

v241.go 392B

1234567891011121314151617
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_19 //nolint
  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. }