Run a single changeset

Is it currently possible to run a single changeset by id? We have a situation where we execute liquibase on app deployment but occasionally have data update scripts to run in production that we hardly want to cut a full patch release of the app in order to run a single changeset. What do others do to address this?

There isn’t a way to do that built in currently. You would be able to with a little java coding with the liquibase APIs. Another option would be to run updateSQL against your database to get the SQL including the insert into databasechangelog for the changeSet and then copy/paste it into your database editor to run.


Nathan

You can use “updateCount 1” to run just one changeSet, but it has to be the next one that would run.


Nathan