ant - How to generate sql file from Liquibase without DATABASECHANGELOG inserts? -
i have following problem : need produce migration file database in production. i'm using ant , following ant task :
<liquibase:updatedatabase changelogfile=db.changelog-master.xml" databaseref="oracle-database" outputfile="out_ora.sql" />
but file includes insert statements databasechangelog table. how can produce output file without statements ? (i wouldn't delete statements manually or script later).
you can use extension: https://github.com/liquibase/liquibase-nochangelogupdate
just add jar classpath , liquibase not output databasechangelog sql
Comments
Post a Comment