You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That chat_id line is the line that causes the problem - because it is defining a reference to a table that no longer exists!
simonw
changed the title
New .add_foreign_key() can break if PRAGMA legacy_alter_table=ON
New .add_foreign_key() can break if PRAGMA legacy_alter_table=ON and there's an invalid foreign key reference
Aug 19, 2023
Although this is revealing a problem in the underlying code (that schema is invalid), it also represents a regression: sqlite-utils 3.34 ran this just fine, but it fails on sqlite-utils 3.35 due to the change made in:
Extremely detailed story of how I got to this point:
Steps to reproduce (only if that pragma is on though):
This succeeds in some environments, fails in others.
The text was updated successfully, but these errors were encountered: