Discussion:
[Liquibase-user] New Topic: Using context for development-only and production changesets
Liquibase Community Forum
2010-12-07 21:02:05 UTC
Permalink
A new topic, 'Using context for development-only and production changesets', has been made on a board you are watching.

You can see it at
http://liquibase.org/forum/index.php?topic=819.new#new

The text of the topic is shown below:

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 giving a context the "default context" and contexts specified would be run.

Best regards /Lasse

Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=1.0

Regards,
The Liquibase Community Forum Team.

Loading...