简体   繁体   English

updateDatabase 不支持 liquibase 版本 4.17.2 上的驱动程序属性

[英]updateDatabase does not support the driver attribute on liquibase version 4.17.2

We are using Liquibase for database updation in deployment pipeline with Ant script.我们在使用 Ant 脚本的部署管道中使用 Liquibase 进行数据库更新。 Existing version of liquibase-core jar file is 3.8.3 and i want to upgrade to 4.17.2. liquibase-core jar 文件的现有版本是 3.8.3,我想升级到 4.17.2。 I put updated version into C:\Installations\apache-ant-1.9.4-bin\apache-ant-1.9.4\lib folder and replace the version in liquibase-build.xml file which is in jenkins_files/ant_script/liquibase-build.xml file.我将更新版本放入 C:\Installations\apache-ant-1.9.4-bin\apache-ant-1.9.4\lib 文件夹并替换 liquibase-build.xml 文件中的版本,该文件位于 jenkins_files/ant_script/liquibase- build.xml 文件。 After the above upgrade i run the process then it is giving below error:上述升级后,我运行该过程,然后出现以下错误:

update-database:

BUILD FAILED
D:\repos\testdomainhorzion1_diageotest_com7470\scripts\rollout\liquibase-build.xml:34: updateDatabase doesn’t support the “driver” attribute"

Total time: 0 seconds
Build step ‘Conditional steps (multiple)’ marked build as failure
Performing Post build task…
Could not match :liquibase.exception : False
Could not match :Build step ‘Execute Windows batch command’ marked build as failure : False
Could not match :UnexpectedLiquibaseException : False
Logical operation result is FALSE

How to solve this issue as liquibase doesnot support updateDatabase property?由于 liquibase 不支持 updateDatabase 属性,如何解决此问题?

We are trying to update Liquibase build script but didn't get success yet.我们正在尝试更新 Liquibase 构建脚本,但尚未成功。 If UpdateDatabase property is working with Liquibase 3.8.3 then why is not working with Liquibase 4.17.2如果 UpdateDatabase 属性适用于 Liquibase 3.8.3 那么为什么不适用于 Liquibase 4.17.2

@abhishek. @abhishek。 There were some changes when upgrading from version 3.xx to version 4.xx We have a guide on the forum for resolving the most common issues when Upgrading from Liquibase 3.x to 4.x .从 3.xx 版升级到 4.xx 版时有一些变化我们在论坛上有一个指南,用于解决从 Liquibase 3.x 升级到 4.x时最常见的问题。

When you reference a changelog file like /path/to/changelog.xml or path/to/changelog.xmlorchangelog.xml`, Liquibase has always looked for those by searching through all the directories and files in your “classpath”.当您引用 /path/to/changelog.xml 或 path/to/changelog.xml 或 changelog.xml 之类的更改日志文件时,Liquibase 总是通过搜索“类路径”中的所有目录和文件来查找这些文件。 It has never mattered whether you have a / at the beginning of your filename or not, the path you give is always looked for inside the entries in your classpath.文件名开头是否有 / 并不重要,始终会在类路径的条目中查找您提供的路径。

Additional information is provided in the link above.上面的链接中提供了其他信息。

@Tabby: please see my code and let me know what changes is required and @Tabby:请查看我的代码并让我知道需要进行哪些更改以及在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM