Flyway - managing multiple schemas doesn't work

情到浓时终转凉″ 提交于 2019-12-20 03:15:41

问题


I'm trying to do a migrate on a number of different Postgresql schemas that have the same lifecycle. According to the flyway documentation such a scenario should work. I have the following in my ANT script: When I run the migration, the changes are only applied to the first (default) schema.

Am I doing something wrong, or does the flyway.schemas property only work for clean?

Thank you


回答1:


When dealing with multiple schemas, you still have to prefix the object names accordingly. Only the first one in the list is set as the default one for the connection.

And yes, you are correct, clean will deal with all schemas.



来源:https://stackoverflow.com/questions/14262280/flyway-managing-multiple-schemas-doesnt-work

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