Liquibase Changelog Dynamic Properties Substitution

Sometimes the same property is used multiple times, or cannot be saved in files, or Operating system or environment-dependent, to substitute those variables in ChangeSet while executing, Liquibase allows to define a placeholder in ChangeSet and will replace those dynamically at run time.

Liquibase starts looking for dynamic properties in the below order

  1. Command line arguments
  2. ServletConfig init parameters
  3. ServletContext init parameters
  4. Java system properties JAVA_OPTS Environment Variable
  5. OS environment variables
  6. Configuration data, such as the Liquibase properties file, piped standard input, or default files

Lets understand these with example

follow us on