mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-13 03:54:23 +02:00
Fix for last issue relating to #577
This commit is contained in:
parent
842b61321f
commit
374506a7ed
2 changed files with 12 additions and 9 deletions
|
|
@ -876,7 +876,7 @@ class Database:
|
|||
for fk in foreign_keys:
|
||||
if fk.other_table == name and columns.get(fk.other_column):
|
||||
continue
|
||||
if not any(
|
||||
if fk.other_column != "rowid" and not any(
|
||||
c for c in self[fk.other_table].columns if c.name == fk.other_column
|
||||
):
|
||||
raise AlterError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue