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
Fixed bug in batch mode where a table that had pre-existing indexes
would create the same index on the new table with the same name,
which on SQLite produces a naming conflict as index names are in a
global namespace on that backend. Batch mode now defers the production
of both existing and new indexes until after the entire table transfer
operation is complete, which also means those indexes no longer take
effect during the INSERT from SELECT section as well; the indexes
are applied in a single step afterwards.
fixes batch fails on tables that have indexes #333
Migrated issue, originally created by Michael Bayer (@zzzeek)
not sure how nobody has come across this yet, it is pretty basic:
SQLite holds the index name as unique across the whole DB, so we get:
OperationalError: (sqlite3.OperationalError) index ix_thing already exists [SQL: u'CREATE INDEX ix_thing ON _alembic_batch_temp (thing)']
The text was updated successfully, but these errors were encountered: