开发者

Flyway: How to support cleaning of multiple schemas with same lifecycle?

开发者 https://www.devze.com 2023-02-18 17:47 出处:网络
Using DB migrations using Flyway with mult开发者_C百科iple schemas which have the same lifecycle, how can I achieve that they all get clean when I use flyway:clean?Support for this has now been added

Using DB migrations using Flyway with mult开发者_C百科iple schemas which have the same lifecycle, how can I achieve that they all get clean when I use flyway:clean?


Support for this has now been added to the 1.3.1 release!

Set the flyway.schemas property with the list of schemas you wish to manage, and your good to go!

Example:

flyway.schemas=schema1,schema2,schema3

mvn flyway:clean will now clean all 3 schemas.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号