我在schema_version表中有v1,v2版本。 我想在其间添加版本v1.1。 我如何使用cmd进行手动删除v2并再次运行flyway migrate?
答案 0 :(得分:1)
打开outOfOrder运行;请参阅migrate docs。
Option: outOfOrder Required: No Default: false Description: Allows migrations to be run "out of order". If you already have versions 1 and 3 applied, and now a version 2 is found, it will be applied too instead of being ignored.
如果您通过命令行运行,请执行以下操作:
V1.1__description.sql
或类似-outOfOrder true