Re: alembic upgrade not idempotent?

2016-04-18 Thread bertrand
Sorry for the confusion, I meant "alembic upgrade head" indeed. As you confirmed the expected behavior, I did a bit of debugging to find out where I might have done a mistake, and I found the problem. I wrote a test revision that looked like the following: def upgrade(): bind =

Re: alembic upgrade not idempotent?

2016-04-18 Thread Mike Bayer
On 04/18/2016 10:56 AM, bertr...@cryptosense.com wrote: Hi, Here's something quite fundamental I don't understand about alembic. I've initialized my database and created a revision meant to be executed online. I went like this: | alembic init app/alembic # edit configuration alembic revision