generateChangelog忽略diffTypes =“data”(generateChangelog ignores diffTypes=“data”)

编程入门 行业动态 更新时间:2024-10-24 21:31:14
generateChangelog忽略diffTypes =“data”(generateChangelog ignores diffTypes=“data”)

我跑

liquibase generateChangeLog --diffTypes="data"

但它生成的changelog文件没有任何插入,与没有diffTypes相同。

属性:

driver=org.postgresql.Driver classpath=postgresql.jdbc.jar url=jdbc:postgresql://localhost:5432/knightsaga username=postgres password=postgres # default changelog to use, relative to classpath changeLogFile=./changelogs/db.changelog.xml ### DIFF params ### referenceUrl=jdbc:postgresql://localhost:5432/knightsaga referenceUsername=postgres referencePassword=postgres

如何在那里包含数据?

I run

liquibase generateChangeLog --diffTypes="data"

but it generates changelog file without any inserts, the same as without diffTypes.

Properties:

driver=org.postgresql.Driver classpath=postgresql.jdbc.jar url=jdbc:postgresql://localhost:5432/knightsaga username=postgres password=postgres # default changelog to use, relative to classpath changeLogFile=./changelogs/db.changelog.xml ### DIFF params ### referenceUrl=jdbc:postgresql://localhost:5432/knightsaga referenceUsername=postgres referencePassword=postgres

How to include data there?

最满意答案

您是否尝试在不使用属性文件的情况下运行generateChangelog命令? 您可以在命令行中指定所有参数,如下例所示:

liquibase --driver = org.postgresql.Driver --classpath = postgresql.jdbc.jar --changeLogFile =。/ changelogs / db.changelog.xml --url =“jdbc:postgresql:// localhost:5432 / knightsaga” - -username = postgres --password = postgres --diffTypes =“data”generateChangeLog

Did you try to run generateChangelog command without using properties file? You can specify all of the parameters in the command line like in following example :

liquibase --driver=org.postgresql.Driver --classpath=postgresql.jdbc.jar --changeLogFile=./changelogs/db.changelog.xml --url="jdbc:postgresql://localhost:5432/knightsaga" --username=postgres --password=postgres --diffTypes="data" generateChangeLog

更多推荐

本文发布于:2023-07-30 01:31:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1321403.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:diffTypes   generateChangelog   ignores   data

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!