Skip to content

How to prevent a temporary table remaining in batch operation mode with SQLite3. #1092

Answered by zzzeek
c-bata asked this question in Usage Questions
Discussion options

You must be logged in to vote

well without transactional DDL (Which note, SQLite actually has, it's just prevented by a bug in the pysqlite driver), alembic doesn't have a generalized route to "clean up " a failed migration, this implies the migration is only halfway through and there could be any number of tables and column changes that succeeded, and now would have to be "rolled back" - without transactional DDL, there's no path to that.

The scenario you describe where a SQLite batch migration fails midway, yet the only issue is the temporary table remaining, seems contrived. what about all the tables/columns/changes that are now present and would have to be rolled back also in order to run the migration again?

all …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@c-bata
Comment options

@zzzeek
Comment options

Answer selected by c-bata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants