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

Drops an existing index

Available Attributes

NameDescription
catalogNameName of the catalog@ v3.0E.g. 'cat'
indexNameName of the index to dropE.g. 'idx_address'
schemaNameName of the schemaE.g. 'public'
tableNameName of the indexed table.E.g. 'person'Required for: asany, mariadb, mssql, mysql, sybase
<changeSet author="liquibase-docs" id="dropIndex-example">
    <dropIndex catalogName="cat"
            indexName="idx_address"
            schemaName="public"
            tableName="person"/>
</changeSet>
changeSet:
  id: dropIndex-example
  author: liquibase-docs
  changes:
  - dropIndex:
      catalogName: cat
      indexName: idx_address
      schemaName: public
      tableName: person
{
  "changeSet": {
    "id": "dropIndex-example",
    "author": "liquibase-docs",
    "changes": [
      {
        "dropIndex": {
          "catalogName": "cat",
          "indexName": "idx_address",
          "schemaName": "public",
          "tableName": "person"
        }
      }]
    
  }
}

SQL Generated From Above Sample (MySQL)

DROP INDEX idx_address ON cat.person;

Database Support

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