Change: ‘customChange’

Although Liquibase tries to provide a wide range of database refactorings, there are times you may want to create your own custom refactoring class.

To create your own custom refactoring, simply create a class that implements the liquibase.change.custom.CustomSqlChange or liquibase.change.custom.CustomTaskChange interface and use the <custom> tag in your change set.

If your change can be rolled back, implement the liquibase.change.custom.CustomSqlRollback interface as well.

For a sample custom change class, see liquibase.change.custom.ExampleCustomSqlChange

Available Attributes

NameDescriptionRequired ForSupportsSince
<changeSet author="liquibase-docs" id="customChange-example">
    <customChange/>
</changeSet>
changeSet:
  id: customChange-example
  author: liquibase-docs
  changes:
  - customChange:
      param: {}
{
  "changeSet": {
    "id": "customChange-example",
    "author": "liquibase-docs",
    "changes": [
      {
        "customChange": {
          "param": {
            }
        }
      }]
    
  }
}

Database Support

DatabaseNotesAuto Rollback
DB2SupportedNo
DerbySupportedNo
FirebirdSupportedNo
H2SupportedNo
HyperSQLSupportedNo
InformixSupportedNo
MySQLSupportedNo
OracleSupportedNo
PostgreSQLSupportedNo
SQL ServerSupportedNo
SQLiteSupportedNo
SybaseSupportedNo
Sybase AnywhereSupportedNo

Missing, incomplete or wrong information? Please send a pull request