I have the following scenario:
Some changesets are only valid in the development environment. I do not want to run these changes in production environment. The rest of the changesets are valid both in development and production environment.
I had an idea of that I would mark the development changesets with context=“dev”. If I do not specify any context when running a liquibase command all changesets will be executed regardless of what context is set on changesets.
But, how do I do if I want to run only the changesets that are of interest for the production environment?
Do I have to mark all production-only changesets with context=“prod” to accomplish this? Production-only changesets are in a vast majority which would mean a lot of work to mark all those.
If I understand this right, wouldn’t it be better that when giving no context all changesets with no context, i.e. default context so to say, would be run. But if I want both those with context specified and “default context” specified, I would specify “default,test” to be both to be run.
Best regards /Lasse