Skip to content
Advertisement

Tag: revision

How to prevent alembic revision –autogenerate from making revision file if it has not detected any changes?

I have project where I’m using SQLAlchemy for models and I’m trying to integrate Alembic for making migrations. Everything works as expected when I change models and Alembic sees that models have changed -> it creates good migration file with command: alembic revision –autogenerate -m “model changed” But when I have NOT changed anything in models and I use the

Advertisement