Flyway-管理多个架构不起作用 [英] Flyway - managing multiple schemas doesn't work

查看:95
本文介绍了Flyway-管理多个架构不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对许多具有相同生命周期的不同Postgresql模式进行迁移.根据飞行路线文档,这种情况应该可行. 我的ANT脚本中包含以下内容: 当我运行迁移时,所做的更改仅应用于第一个(默认)模式.

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.

我做错什么了吗,或者flyway.schemas属性仅可用于清洁工作?

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

谢谢

推荐答案

在处理多个架构时,您仍然必须为对象名称加上相应的前缀.列表中只有第一个设置为默认连接.

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.

这篇关于Flyway-管理多个架构不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆