Not able to generate rollback scripts by tag in offline mode

I am not clear what you are trying to do - what are the exact commands you used, and what are the relavant input files used? 

I am not clear what your expected result is, nor is it clear what the actual result was. Without those three things, it is very difficult to diagnose the problem.

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

I am trying to generate a rollback script by rollbackTag using maven liquibase plugin as follows in offline mode. It failed to find a tag in offline database(nothing but a changelog.csv file generated on process). It working by rollbackCount.

I am suspecting the problem with generated changelog file in offline mode It’s not updating changeset tag information in it.

org.liquibase

liquibase-maven-plugin

${liquibase.maven.plugin.version}



true







write-application-rollback-script-sql

generate-sources



changelog/install-hub.xml

env/offline.properties

${project.basedir}/target/liquibase/RollbackPatchScript.sql

v3.1.0-1896





rollbackSQL






offline.properties
url:

In simple words I want to generate a rollback sql script for a particular tag using maven plugin. I am trying with above approach and it doesn’t work for me. Plz let me know any alternatives.

In simple words I want to generate a rollback sql script for a particular tag using maven plugin. I am trying with above approach and it doesn’t work for me. Plz let me know any alternatives.

The simple words are the problem here. Too simple. The only way anyone can help you is if you explain the problem in more detail. Right now, I don’t even understand your objective. What should the rollback script roll back? What do expect the end state of the system to be? What have you tried that didn’t work? What problems did you experience?

Perhaps you could read this article - it explains how to ask questions that get answers. If you plan on doing this for a living, it is very good advice.

http://www.catb.org/esr/faqs/smart-questions.html

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/