postgresql - Liquibase generateChangeLog doesn't retrieve all schemas with postgres
问题描述
I m new to liquibase and tried to generate a changelog from an existing database my database contains 3 schemas when I execute the following command :
Liquibase --driver=org.postgresql.Driver
--classpath=postgresqljdbc4.jar
--changeLogFile=db.changelog.xml
--url="jdbc:postgresql://localhost:5432/my_bd"
--username=username
--password=password
generateChangeLog
the db.changelog.xml is generated but it retrieve only one schemas information
How to get all the schemas information
note that every schema contains tables
解决方案
Liquibase only works with a single schema at a time, so you would need to tell it which schema to generate a changelog for, and do that three times. You can specify the schema for postgres in the url. See this question for details:
Is it possible to specify the schema when connecting to postgres with JDBC?
If you need to work with multiple schemas, you might want to look at Datical DB, as that product has the ability to work with multiple schemas in a single changelog.
(disclaimer: I work for Datical)
推荐阅读
- python - 从 torch.Tensor 中删除一个元素
- cypress - 赛普拉斯 - 当其他网址上的身份重定向时,我的测试无法继续
- javascript - 接收字符串而不是数组
- flutter - Flutter:从指定位置访问文件
- highcharts - 在 Highcharts 组织结构图中向下钻取?
- mysql - 如果其中一列的数据超过 1024 个字符,则不返回记录集 Mysql 8.0 和 Classic ASP
- python - 从熊猫数据框中绘制按时间顺序排序的数据
- python - Python lambda反向映射
- javascript - 将使用 mediaRecorder 制作的视频上传到服务器
- python - 如何从 PyQt5 中的第二个文件访问第一个文件方法?