0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

FlywayMigrateでverifyをスキップ

Posted at

備忘録です。

 直面した問題

あるトピックブランチでmigrateファイルを作ったのち、それがメインブランチにマージされる前に他のトピックブランチを切って別件の作業をはじめました。DBは共有です(それもまあ問題なんですが)。

そちらでもデータ投入が必要だったため、以下の通りバージョンを飛ばして上げたmigrateファイルを作成したものの、うまくいかないだろうなーと思いながらFlywayMigrateを実行したら無事死亡(チーン)。

  • V_3.2__xxx.sql
  • // 3.3は別のトピックブランチで欠番
  • V_3.4__xxx.sql <- 作った

やはりというか3.3がないので怒られます。

解決法

実行時のJVMオプションで-Dflyway.validateOnMigrate=falseを指定。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?