This commit is contained in:
Zach Musgrave
2024-05-22 17:04:41 -07:00
parent 3f3b58a983
commit dc3c74141a

View File

@@ -878,6 +878,10 @@ func (root *rootValue) RenameTable(ctx context.Context, oldName, newName TableNa
}
func (root *rootValue) RemoveTables(ctx context.Context, skipFKHandling bool, allowDroppingFKReferenced bool, tables ...TableName) (RootValue, error) {
if len(tables) == 0 {
return root, nil
}
// TODO: support multiple schemas in same operation, or make an error
tableMap, err := root.getTableMap(ctx, tables[0].Schema)
if err != nil {