Ignore changesets for a new deploy

Is it possible to ignore changesets and only run the “final” database DDL-scripts that creates the database. I guess liquibase should mark the last changesets as “ran”, so the next deploy + start with news changesets will apply correctly.

http://www.liquibase.org/manual/contexts are the normal way for conditionally applying changesets at runtime.


You can also add preconditions to only run changesets if tables already exist.


If you are asking if you can have liquibase skip old changesets that are no longer needed (like a create changeset where the table is later dropped) you can not. That will require you to manually edit the changelog based on how you understand the database to evolve. It’s usually not best to do that, however, since it can have unintended consequences.


Nathan