Bypass current version check when stamping.

2017-08-05 Thread Philippe Lavoie
Let's say you're on branch and you have a migration, you test it out, it works: everything is cool. The version in `public.alembic_version` is your latest migration. Before you merge it you have to switch to a different branch to work on something else and you also have a migration there. You w

Re: Bypass current version check when stamping.

2017-08-05 Thread Mike Bayer
On Aug 5, 2017 8:40 AM, "Philippe Lavoie" wrote: Let's say you're on branch and you have a migration, you test it out, it works: everything is cool. The version in `public.alembic_version` is your latest migration. Before you merge it you have to switch to a different branch to work on something

Re: Bypass current version check when stamping.

2017-08-05 Thread Philippe Lavoie
Ah ok, for sure you're thinking about covering more cases than I am. Thanks for your reply :) On Sat, Aug 5, 2017 at 9:02 AM, Mike Bayer wrote: > > > On Aug 5, 2017 8:40 AM, "Philippe Lavoie" > wrote: > > Let's say you're on branch and you have a migration, you test it out, it > works: everyth

Re: Bypass current version check when stamping.

2017-08-05 Thread Mike Bayer
On Aug 5, 2017 9:05 AM, "Philippe Lavoie" wrote: Ah ok, for sure you're thinking about covering more cases than I am. consider if you have multiple, independent branches (eg are not connected down to the root ) and you only want to stamp for one of them. If it sees unfamiliar identifiers in t