Use original relationship names on delete

This commit is contained in:
Mel O'Hagan 2023-01-13 16:18:46 +00:00
parent dfd6575aea
commit 889376003d
1 changed files with 2 additions and 2 deletions

View File

@ -254,8 +254,8 @@
}
async function deleteRelationship() {
delete datasource.entities[fromTable.name].schema[fromRelationship.name]
delete datasource.entities[toTable.name].schema[toRelationship.name]
delete datasource.entities[fromTable.name].schema[originalFromName]
delete datasource.entities[toTable.name].schema[originalToName]
await save()
await tables.fetch()
close()