我在 springboot 应用程序中有多个数据库。我正在使用 liquibase 配置来自动更新数据库。我配置了 master.xml 文件。
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<include file="scripts/seven/table1.sql"
relativeToChangelogFile="true"/>
<include file="scripts/seven/table2.sql"
relativeToChangelogFile="true"/>
</databaseChangeLog>
上述配置仅在我有单个数据库时才有效。
如果我们有多个数据库,那么 liquibase 配置更新各个数据库的表的过程是什么。