Files
2026-08-03 08:13:15 +00:00

18 lines
509 B
Go

// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_19
import (
"context"
"gitea.dev/modelmigration/base"
)
func DropForeignReferenceTable(_ context.Context, x base.EngineMigration) error {
// Drop the table introduced in `v211`, it's considered badly designed and doesn't look like to be used.
// See: https://github.com/go-gitea/gitea/issues/21086#issuecomment-1318217453
type ForeignReference struct{}
return x.DropTables(new(ForeignReference))
}