mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-07 17:14:09 +02:00
Bracket the ALTER TABLE ... RENAME TO statements emitted by transform_sql() with PRAGMA legacy_alter_table=ON/OFF. Since SQLite 3.25 the rename would otherwise rewrite references in every view definition, which failed with "no such table" when a view referenced the just-dropped table, and with keep_table= silently repointed dependent views at the frozen backup table. View definitions are now left byte-for-byte unchanged by a transform. Closes #831 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| cli.py | ||
| db.py | ||
| hookspecs.py | ||
| migrations.py | ||
| plugins.py | ||
| py.typed | ||
| recipes.py | ||
| utils.py | ||