I am working on a team using alembic to manage db migrations. I recently removed the wizard and tried to run alembic upgrade heads
. I received the following message:
INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. ERROR [alembic.util.messaging] Requested revision a04c53fd8c74 overlaps with other requested revisions 453d88f67d34 FAILED: Requested revision a04c53fd8c74 overlaps with other requested revisions 453d88f67d34
I got the same message when I tried to run alembic downgrade -1
. Running alembic history
prints this;
453d88f67d34 -> a04c53fd8c74 (label_1, label_2) (head), Create such and such tables. 2f15c778e709, 9NZSZX -> 453d88f67d34 (label_1, label_2) (mergepoint), empty message b1861bb8b23f, b8aa3acdf260 -> 2f15c778e709 (label_1, label_2) (mergepoint), Merge heads b18 and b8a (...many more old revisions)
which looks like a beautiful story to me. alembic heads
reports a04c53fd8c74 (label_1, label_2) (head)
.
The only thing that seems strange to me is that my version of abmbic db has two meanings:
my_postgres=
The only link I can find in googling exception is the source code , which I would not read.
How could such a situation be? How to fix it? What does "overlap" mean?
source share