Removed db.get_outbound_foreign_keys method

It duplicated the functionality of db.foreign_keys_for_table.
This commit is contained in:
Simon Willison 2020-05-30 11:39:46 -07:00
commit 124acf34a6
3 changed files with 2 additions and 9 deletions

View file

@ -428,7 +428,7 @@ def get_outbound_foreign_keys(conn, table):
if info is not None:
id, seq, table_name, from_, to_, on_update, on_delete, match = info
fks.append(
{"other_table": table_name, "column": from_, "other_column": to_}
{"column": from_, "other_table": table_name, "other_column": to_}
)
return fks