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

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

gradle - How to skip a specific migration

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...