나는 alembic을 사용하는 팀에서 db 마이그레이션을 관리하고 있습니다. 나는 최근에 주인을 끌어와 alembic upgrade heads
을 실행하려고했습니다. 나는 다음 메시지를 얻었다. 내가 alembic downgrade -1
을 실행하려고 할 때 alembic의 "요청 된 수정본 겹치기와 다른 요청 된 수정본"을 어떻게 수정합니까?
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
나는 같은 메시지를 받았습니다. Running
alembic history
이이를 인쇄합니다.
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)
내게는 완벽하게 훌륭한 기록처럼 보입니다. alembic heads
보고 a04c53fd8c74 (label_1, label_2) (head)
.
나에게 이상한 유일한 점은 내 alembic 버전 db에는 두 개의 값이 있다는 것입니다. 나는 예외를 인터넷 검색에서 찾을 수 있습니다
my_postgres=# SELECT * FROM alembic_version;
version_num
--------------
a04c53fd8c74
453d88f67d34
(2 rows)
유일한 기준은 차라리 통해 읽을하려는 source code입니다.
어떻게 이런 상황이 발생할 수 있습니까? 어떻게 수정해야합니까? "중첩"이란 무슨 뜻입니까?