You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
upgrade to b2. We see that to satisfy b2, we also need a1 and a2, as well as b1 and b2:
#!
[classic@photon2 tmp]$ python -m alembic.config upgrade e770df700933
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 4117fef4729e, a1
INFO [alembic.runtime.migration] Running upgrade 4117fef4729e -> 4056b039cc5e, a2
INFO [alembic.runtime.migration] Running upgrade -> a87109c86005, b1
INFO [alembic.runtime.migration] Running upgrade a87109c86005 -> e770df700933, b2
"Current" should show us on a2 and b2, but because a2 is an ancestor of b2 via dependency, we don't see it:
#!
[classic@photon2 tmp]$ python -m alembic.config current
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
e770df700933 (head)
upgrading from a2 to a3, now we see the two branches again:
#!
[classic@photon2 tmp]$ python -m alembic.config upgrade 5bcdf4f57c00
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade 4056b039cc5e -> 5bcdf4f57c00, a3
[classic@photon2 tmp]$ python -m alembic.config current
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
e770df700933 (head)
5bcdf4f57c00 (head)
The text was updated successfully, but these errors were encountered:
Fixed bug where the "alembic current" command wouldn't show a revision
as a current head if it were also a dependency of a version in a
different branch that's also applied. Extra logic is added to
extract "implied" versions on different branches from the top-level
versions listed in the alembic_version table.
Migrated issue, originally created by Michael Bayer (@zzzeek)
Create a1->a2->a3, and b1->b2, where b2 is dependent on a2:
upgrade to b2. We see that to satisfy b2, we also need a1 and a2, as well as b1 and b2:
"Current" should show us on a2 and b2, but because a2 is an ancestor of b2 via dependency, we don't see it:
upgrading from a2 to a3, now we see the two branches again:
The text was updated successfully, but these errors were encountered: