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: ‘dropProcedure’

Drops an existing procedure

Available Attributes

NameDescription
catalogNameName of the catalogSupported by: asany, db2, db2z, derby, firebird, h2, hsqldb, informix, ingres, mariadb, mysql, oracle, postgresql, sqlite, sybaseE.g. 'cat'
procedureNameName of the stored procedure to dropE.g. 'new_customer'
schemaNameName of the schemaE.g. 'public'
<changeSet author="liquibase-docs" id="dropProcedure-example">
    <dropProcedure catalogName="cat"
            procedureName="new_customer"
            schemaName="public"/>
</changeSet>
changeSet:
  id: dropProcedure-example
  author: liquibase-docs
  changes:
  - dropProcedure:
      catalogName: cat
      procedureName: new_customer
      schemaName: public
{
  "changeSet": {
    "id": "dropProcedure-example",
    "author": "liquibase-docs",
    "changes": [
      {
        "dropProcedure": {
          "catalogName": "cat",
          "procedureName": "new_customer",
          "schemaName": "public"
        }
      }]
    
  }
}

SQL Generated From Above Sample (MySQL)

DROP PROCEDURE cat.new_customer;

Database Support

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