Menu

#Alembic

5 posts

Feed·
5 of 5 posts
Adding a Required Foreign Key to a Table That Already Has Rows: A Safe Alembic Migration
📰
0Read More

Adding a Required Foreign Key to a Table That Already Has Rows: A Safe Alembic Migration

DEV Community: flask·ByteBridge Talent LLC·17 days ago
#6lW75HSG
#devtoflask#devto#dev#alembic#users

Autogenerate makes a migration that fails on a full table. Here is why, what it leaves behind on SQLite, and a tested three-step fix.

15s