Liquibase® version 3.8.1 is now available! Get it for free.
2018 XML Announcement

Change: ‘executeCommand’

Executes a system command. Because this refactoring doesn’t generate SQL like most, using Liquibase commands such as migrateSQL may not work as expected. Therefore, if at all possible use refactorings that generate SQL.

Available Attributes

NameDescriptionRequired ForSupportsSince
executableName of the executable to runallall
timeoutTimeout value for executable to runall
<changeSet author="liquibase-docs"
        id="executeCommand-example"
        objectQuotingStrategy="LEGACY">
    <executeCommand executable="mysqldump" timeout="10s"/>
</changeSet>
changeSet:
  id: executeCommand-example
  author: liquibase-docs
  objectQuotingStrategy: LEGACY
  changes:
  - executeCommand:
      executable: mysqldump
      timeout: 10s
{
  "changeSet": {
    "id": "executeCommand-example",
    "author": "liquibase-docs",
    "objectQuotingStrategy": "LEGACY",
    "changes": [
      {
        "executeCommand": {
          "executable": "mysqldump",
          "timeout": "10s"
        }
      }]
    
  }
}

Database Support

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