Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Does anybody know, how can I skip a specific migration using Flyway? I mean, to not execute and not write information in flyway_schema_history table at all. It looks like a deletion or renaming of a migration file (but without it). It might also looks like an inverted 'cherryPick'.

For example, I have three migrations:

V1__migration.sql
V2__migration.sql
V3__migration.sql

I want to execute migrations V1, V3 and not to execute V2. After it I expect to see records only for migrations V1, V3 in flyway_schema_history table.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.4k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...