gitea源码

12345678910111213141516
  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. func DropForeignReferenceTable(x *xorm.Engine) error {
  8. // Drop the table introduced in `v211`, it's considered badly designed and doesn't look like to be used.
  9. // See: https://github.com/go-gitea/gitea/issues/21086#issuecomment-1318217453
  10. type ForeignReference struct{}
  11. return x.DropTables(new(ForeignReference))
  12. }