Could Alembic use SQLite3's column renaming support? #1576
robertlagrant
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
id rather wait for SQLite to just support ALTER (which they most certainly can, despite sqlite's unusual storage model) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SQLite 3.25.0 has support for renaming table columns.
It would be good to replace the clever but painful method Alembic uses to rename SQLite columns with this, as it means that things like constraints set on the table no longer have to be removed and re-added in migrations.
It is possible to check the version of SQLite present -
In Python:
Or in SQL:
SELECT sqlite_version();
This way perhaps both methods could be supported in parallel.
Beta Was this translation helpful? Give feedback.
All reactions