3 ms·
SQLAlchemy has a sister project called Alembic for migrations, check it out https://alembic.sqlalchemy.org/en/latest/ https://alembic.sqlalchemy.org/en/latest/
by grenoire 6y ago
SQLAlchemy has a sister project called Alembic for migrations, check it out https://alembic.sqlalchemy.org/en/latest/ https://alembic.sqlalchemy.org/en/latest/
Not really 'slap JSON get database' level, but well, close.
- jamil7 6y agoFrom using Alembic a little bit lately I've found it needs a lot more babysitting than for example Django's migrations. It's probably for the best as I end up reading and editing the migrations much more than I would in Django.
- grenoire 6y agoI definitely had my ass bit by Django migrations on deployment when I had cases like A->B->C (must be ran in order) but ran A->C through makemigrations, because I skipped the commit that is used to generate B. I did catch it only because I expected I would run into this problem, but yeah, easy to shoot yourself in the foot when you expect it to be 100% magic!