Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : How to make sure at least one context is selected?

$
0
0
There isn't a way to require a context currently. Your precondition setup seems like the easiest route. If you are running command line mode, you could create a liquibase.properties file that defines a contexts property which will be the default unless it is overridden. Otherwise you could create a subclass of however you run liquibase (Ant LiquibaseTask class, command line Main class, etc) which adds in a context if none is specified.

Nathan

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>