Flyway migration hangs for postgres CREATE INDEX CONCURRENTLY

泪湿孤枕 提交于 2019-12-05 08:01:53

In the meantime, there is a Resolver included in flyway which looks for some magic in the filename.

Just add the prefix 'NT' (for No-Transaction) to your migration file, i. e.

V01__usual_migration_1.sql

V02__another_migration.sql

NTV03__migration_that_does_not_run_in_transaction.sql

V04__classical_migration_4.sql

etc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!