checking environment before executing the script


I am very new to liquibase. Currently we have the following requirement. Some of the scripts should be executed based on environment. For example 


update application_properties value=“123” where key=“abc” …this script should be executed in DEMO not in production. how do we solve this issue in Liquibase.


You would use contexts for this. 


http://www.liquibase.org/documentation/contexts.html


Note that the documentation for contexts is currently misleading - the section that described using things like ! (NOT), AND, and OR are only available on the 3.2-SNAPSHOT builds of Liquibase. Version 3.2 has not been released yet.

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/