Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

How to generate a SQL file with rollbackSQL with offline mode

$
0
0
Hi all

That is the question. I want to generate a file with the sql rollback sentences from a changesets file, but I want to do it without active connection, I mean, offline.

So I tried with this command:

  1. java -jar liquibase.jar --url="offline:postgresql?changeLogFile=changelogfile.csv" --changeLogFile=MyChangesets.xml rollbackSql MY_TAG_DATABASE > "/path/to/output/file.sql"
But I got this error: 

  1. Unexpected error running Liquibase: Could not find tag 'MY_TAG_DATABASE' in the database

I am pretty sure that the tagDatabase 'MY_TAG_DATABASE' is in  MyChangesets.xml file, is like:


  1.         <changeSet id="MY_CHANGESET_XXX" author="author">
  2. <tagDatabase tag="MY_TAG_DATABASE" />
  3. </changeSet>


, but, as I said, there isn't database because I am working in offline mode.

How can I generate the rollback sql file with offline database?

Thanks a lot !!

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>