I'm comparing two databases using liquibase integrated with ant. But the output it is generating is like generic format. It is not giving sql statements. Please can anyone tell me how compare two databases using liquibase integrated with ant or command line utility.
相关问题
- How can I have my ant task pass or fail based on t
- Ant inheriting Maven properties
- How can I zip multiple folders individually with a
- Class in jar not found at runtime, but was used to
- Regex to select last line in a multi-line string
相关文章
- logging not working in liquibase 3.6.1 using logle
- Liquibase - generate script without applying chang
- Passing command line arguments to Java via ant bui
- ANT - Could not load a dependent class com/jcraft/
- library resolve to a path with no project.properti
- ant file that depends on another ant file
- android-sdk/tools/ant/build.xml:698: null returned
- ant jar's mainclass
Obtaining the SQL statements, representing the diff between two databases, is a two step operation:
Example
This example requires a liquibase.properties file (simplifies the command-line parameters):
Now run the following commands to create the SQL statements:
A nice feature of liquibase is that it can also generate the rollback SQL:
Update
Liquibase does not generate a data diff between databases, only the schema. However, it is possible to dump database data as a series of changesets:
One can use the data.xml file to migrate data contained in new tables.
Update 2:
Also possible to generate liquibase changesets using groovy.