Applies to
- Liquibase Pro
- Liquibase Open Source (Community
Environment Conditions
- Any version of Liquibase Pro or Open Source
Summary
When using Liquibase, it’s crucial to ensure that your XML changelog files use the correct XSD version to match your Liquibase version. An outdated or incorrect XSD version can lead to validation errors or the inability to use certain commands or attributes.
How-To: Update the XSD Version
- Open your Liquibase changelog file (.xml).
- Locate the XML declaration line at the top, referencing the XSD version.
- Update the URL to the correct XSD version for your Liquibase version.
-
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-<version>.xsd
http://www.liquibase.org/xml/ns/pro
http://www.liquibase.org/xml/ns/pro/liquibase-pro-<version>.xsd " <version>
is the version of the XSD that is being used. For example,http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.29.xsd
-
- Save the file
-
Run Liquibase to ensure no validation errors occur.
Note: Please check dbchangelog for all of the available XSD versions.
Comments
0 comments
Article is closed for comments.