ItsDrike / code-jam-2024

Python Discord's Code Jam 2024, Contemplative Constellations Team
MIT License
1 stars 0 forks source link

Fix running table altering migrations #68

Closed ItsDrike closed 1 month ago

ItsDrike commented 1 month ago

Since SQLite doesn't support the ALTER TABLE command, running migrations that alter the structure of database tables with alembic fails. To fix this, alembic provides a render_as_batch option, which will instead create new tables, copy the data over from the old ones and then remove the old ones, bypassing this limitation.

Paillat-dev commented 1 month ago

Would you mind also rebasing and then re-creating the initial migration?