想要在现有模式版本之间添加新的飞行路线
want to add a new flyway in between existing schema version
我在 schema_version table 中有版本 v1、v2。
我想在两者之间添加版本 v1.1。
我如何使用 cmd 执行此操作而无需手动删除 v2 和 运行 flyway migrate 再次?
运行 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
我在 schema_version table 中有版本 v1、v2。 我想在两者之间添加版本 v1.1。 我如何使用 cmd 执行此操作而无需手动删除 v2 和 运行 flyway migrate 再次?
运行 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