Liquibase Diff操作不生成输出文件

时间:2011-09-05 07:58:26

标签: mysql command-line diff command-prompt liquibase

我正在尝试在两个表上运行liquibase diff操作。

该操作似乎工作正常,因为我可以看到命令提示符中发生的所有比较。我唯一的问题是没有输出文件。这是我的代码,我添加了换行符以帮助提高可读性:

java -jar liquibase/liquibase.jar 
    --driver=com.mysql.jdbc.Driver 
    --classpath=/liquibase/changelog-generating/mysql-connector-java-5.1.13.jar 
    --changeLogFile=liquibase/local.table.changelog.xml 
        --url="jdbc:mysql://localhost/table1" 
        --username=root 
        --password="" 
    diff 
        --referenceUrl="jdbc:mysql://localhost/table2" 
        --referenceUsername=root 
        --referencePassword=""

当我运行没有diff和引用变量的命令时,我确实收到了一个输出文件。

  • 无需密码即可访问数据库(毕竟它只是本地主机)。
  • Liquibase安装在C:/ liquibase
  • 我正在使用Windows Vista

1 个答案:

答案 0 :(得分:4)

排序。错过了......

generateChangeLog

在命令的末尾。