Use original relationship names on delete
This commit is contained in:
parent
dfd6575aea
commit
889376003d
|
@ -254,8 +254,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
async function deleteRelationship() {
|
async function deleteRelationship() {
|
||||||
delete datasource.entities[fromTable.name].schema[fromRelationship.name]
|
delete datasource.entities[fromTable.name].schema[originalFromName]
|
||||||
delete datasource.entities[toTable.name].schema[toRelationship.name]
|
delete datasource.entities[toTable.name].schema[originalToName]
|
||||||
await save()
|
await save()
|
||||||
await tables.fetch()
|
await tables.fetch()
|
||||||
close()
|
close()
|
||||||
|
|
Loading…
Reference in New Issue