code.gitea.io/gitea@v1.22.3/models/migrations/v1_19/v237.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 func DropForeignReferenceTable(x *xorm.Engine) error { 11 // Drop the table introduced in `v211`, it's considered badly designed and doesn't look like to be used. 12 // See: https://github.com/go-gitea/gitea/issues/21086#issuecomment-1318217453 13 type ForeignReference struct{} 14 return x.DropTables(new(ForeignReference)) 15 }