Liquibase® version 3.8.5 is now available! Get it for free.
2018 XML Announcement
News All Previous Posts >>

Subscribe for email updates

- and/or -

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

NameDescription
executableName of the executable to runE.g. 'mysqldump'
timeoutTimeout value for executable to runE.g. '10s'
<changeSet author="liquibase-docs" id="executeCommand-example">
    <executeCommand executable="mysqldump" timeout="10s"/>
</changeSet>
changeSet:
  id: executeCommand-example
  author: liquibase-docs
  changes:
  - executeCommand:
      executable: mysqldump
      timeout: 10s
{
  "changeSet": {
    "id": "executeCommand-example",
    "author": "liquibase-docs",
    "changes": [
      {
        "executeCommand": {
          "executable": "mysqldump",
          "timeout": "10s"
        }
      }]
    
  }
}

Database Support

DatabaseNotesAuto Rollback
DB2/LUWSupportedNo
DB2/zSupportedNo
DerbySupportedNo
FirebirdSupportedNo
H2SupportedNo
HyperSQLSupportedNo
INGRESSupportedNo
InformixSupportedNo
MariaDBSupportedNo
MySQLSupportedNo
OracleSupportedNo
PostgreSQLSupportedNo
SQL ServerSupportedNo
SQLiteSupportedNo
SybaseSupportedNo
Sybase AnywhereSupportedNo