我跑
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=postgresHow 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
更多推荐
发布评论