Translations of this page?:

Change Log Parameters

Since LiquiBase 1.7

LiquiBase allows dynamic substitution of parameters in a changelog. The parameters to replace are described using the ${} syntax.

Example

<createTable tableName="${table.name}">
     <column name="id" type="int"/>
     <column name="${column1.name}" type="varchar(${column1.length})"/>
     <column name="${column2.name}" type="int"/>
</createTable>

Configuring parameter values

Parameter values are looked up in the following order:

  1. Passed as a parameter to your LiquiBase runner (see Ant, Command Line, etc. documentation for how to pass them)
  2. As a JVM system property
  3. In the <parameters/> block of the DatabaseChangeLog file itself.
 
manual/changelog_parameters.txt · Last modified: 2008/06/20 14:29 by nvoxland     Back to top