代码之家  ›  专栏  ›  技术社区  ›  soundstripe

Liquibase-可选差异参数不工作

  •  0
  • soundstripe  · 技术社区  · 6 年前

    平台:Windows,针对DB2-for-i

    liquibase update , liquibase status liquibase rollback 他们都在工作。

    当我试图限制 diff 命令(或 diffChangeLog 命令)使用任何可选的差异参数( --schemas , -- includeObjects 等)我得到以下信息:

    > liquibase.bat 
      --url=jdbc:as400://dbhost1/dbname 
      --username=user 
      --password=password 
      --changeLogFile=.\db2.changelog.xml 
      diffChangeLog 
      --schemas=MYSCHEMA 
      --referenceUrl=jdbc:as400://dbhost2/dbname 
      --referenceUsername=user 
      --referencePassword=password
    
    Unexpected error running Liquibase: Unknown option: 'schemas'
    liquibase.exception.CommandLineParsingException: Unknown option: 'schemas'
            at liquibase.integration.commandline.Main.parseOptionArgument(Main.java:818)
            at liquibase.integration.commandline.Main.parseOptions(Main.java:764)
            at liquibase.integration.commandline.Main.run(Main.java:177)
            at liquibase.integration.commandline.Main.main(Main.java:129)
    
    1 回复  |  直到 6 年前
        1
  •  0
  •   SteveDonie    6 年前

    我还没有尝试过这个,但我认为你只需要重新排序,把选项放在命令之前。

    liquibase.bat 
      --url=jdbc:as400://dbhost1/dbname 
      --username=user 
      --password=password 
      --changeLogFile=.\db2.changelog.xml 
      --schemas=MYSCHEMA 
      --referenceUrl=jdbc:as400://dbhost2/dbname 
      --referenceUsername=user 
      --referencePassword=password
      diffChangeLog