Flyway - managing multiple schemas doesn't wor

2019-02-26 06:03发布

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条回答
三岁会撩人
2楼-- · 2019-02-26 06:22

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.

查看更多
登录 后发表回答