我正在使用以下命令生成更改日志
liquibase --schemas=test_schema --changelog-file=changelog.xml generateChangeLog
我的 liquibase.properties 文件如下:
url: jdbc:postgresql://xx.xxx.xx.xx:5432/test_db
driver: org.postgresql.Driver
username: testuser
password: test
logFile: liquibase.log
logLevel: debug
defaultSchemaName= test_schema
outputDefaultSchema= true
changelog.xml 中的输出没有 schemaName,我的数据库中有多个 schema,所以我也需要 changelog 中的 schemaname。
输出 :
<changeSet author="user1 (generated)" id="xxxxxxxxxxxxx-1">
<createTable tableName="hello_world">
<column name="msg" type="CHAR(60)"/>
</createTable>
</changeSet>
应该是 test_schema.hello_world 或者应该定义 schemaname。有什么建议我做错了吗?