有没有办法在Alembic中运行特定的修订版本而无需先降级然后升级

时间:2019-12-05 14:56:07

标签: python alembic

因此,我们一直在使用具有不同分支的alembic进行大量迁移,并且不得不将它们合并,在最后一次合并中,一个特定的修订版未运行,此时数据已添加到新表/列中并且很难降级到该点然后升级而又不丢失数据,那么有没有办法使Alembic运行一个没有错误运行的特定版本,而现在的头衔却指向那个点之外?

除菌史:

10ccee57a9f1, a849bd764bf5 -> 83fd03fd2c6c (head) (mergepoint), merge dummy and term type
1b0d2744a317, 131853a20c20 -> 10ccee57a9f1 (mergepoint), empty message
0d4642d2bb3d -> 1b0d2744a317, 20191125 add_dummy
605fcaaf27df, 131853a20c20 -> a849bd764bf5 (mergepoint), term_type y access
0d4642d2bb3d -> 605fcaaf27df, 20191127 add_term_type
2038baa56e2c, 0d4642d2bb3d -> 131853a20c20 (branchpoint) (mergepoint), merge instructor contrart type and access code migration
37ccd5b738b0 -> 2038baa56e2c, add access to curriculums
411a985541df -> 37ccd5b738b0, add access to instructors
60ce90bfd537 -> 411a985541df, add access to campus
9298e8b9ab27 -> 0d4642d2bb3d (branchpoint), 20191111 create_instructor_contract_type table

要运行create_instructor_contract_type修订版

0 个答案:

没有答案