SQLite STRICT is not propagated in batch mode #1756
Unanswered
david-fed
asked this question in
Usage Questions
Replies: 1 comment 3 replies
-
|
hi - I would classify this as a bug in batch mode, as it needs to recreate the table with all original options. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
SQLite supports the
STRICTandWITHOUT ROWIDkeywords at the end of a table definition. These keywords are correctly applied in the initial migration but removed in subsequent migrations when the table is being recreated even though the model still contains these keywords.Specs:
Sample model:
Steps to reproduce:
alembic revision --autogeneratealembic upgrade headsqlite3 ./test.dbuser_namecolumn in the modelalembic revision --autogeneratealembic upgrade headsqlite3 ./test.dbActual result: Keywords
STRICTandWITHOUT ROWIDwere lost on the table after the 2nd migration which was supposed to only drop a columnExpected result: Keywords
STRICTandWITHOUT ROWIDstay on the table unless removed in the modelBeta Was this translation helpful? Give feedback.
All reactions