有没有办法告诉flyway只迁移到特定版本。 例如,我有4个版本,例如V1,V2,V3,V4脚本,我想只迁移到V3但不迁移到v4。
提前致谢。
Is there a way to tell flyway to migrate only to specific version? For e.g. I have 4 versions e.g. V1, V2, V3and V4 scripts and I want to migrate only to V3 but not to v4.
最满意答案
迁移任务具有“目标”属性,允许您指定该属性。
target - Flyway应考虑迁移的目标版本。 具有更高版本号的迁移将被忽略。 特殊值current指定架构的当前版本。
Command for Command: http : //flywaydb.org/documentation/commandline/migrate.html
The migrate Task has a "target" attribute which lets you specify that.
target - The target version up to which Flyway should consider migrations. Migrations with a higher version number will be ignored. The special value current designates the current version of the schema.
Doc for CommandLine: http://flywaydb.org/documentation/commandline/migrate.html
更多推荐
发布评论