Servlet listener and rollbacks

Hello

I work in a big corporate. The servlet listener is fantastic for us to do continuous delivery, because it means we can use the existing JavaEE datasources to do the updates in production & we don’t have to build anything special to authenticate a JDBC connection.

However, we still have to be able to roll back. Can the servlet listener be configured to generate a rollback script? Or, ideally, I would like it to tag before update and then I could build a page that allows the deployer to rollback to the specific tag.

Any ideas?

Cheers
Jem

It does not do it currently, but it is easy enough to create your own Servlet Listener that does whatever you need.


Line 147 of https://github.com/liquibase/liquibase/blob/master/liquibase-core/src/main/java/liquibase/integration/servlet/LiquibaseServletListener.java does the update, you can add additional code to a subclass of LiquibaseServletListener or rewrite it to fit your needs.


Nathan