Drops an existing unique constraint.

Available attributes

Name Description Required for Supports Since
catalogName Name of the catalog all 3.0
constraintName Name of unique constraint to drop all all
schemaName Name of the schema all
tableName Name of the table to drop the unique constraint from all all
uniqueColumns all

XML example

<changeSet  author="liquibase-docs"  id="dropUniqueConstraint-example">  
    <dropUniqueConstraint  catalogName="cat"  

YAML example

  id:  dropUniqueConstraint-example  
  author:  liquibase-docs  
  -  dropUniqueConstraint:  
      catalogName:  cat  
      constraintName:  const_name  
      schemaName:  public  
      tableName:  person  
      uniqueColumns:  name

JSON example

{  "changeSet":  {  "id":  "dropUniqueConstraint-example",  "author":  "liquibase-docs",  "changes":  [  {  "dropUniqueConstraint":  {  "catalogName":  "cat",  "constraintName":  "const_name",  "schemaName":  "public",  "tableName":  "person",  "uniqueColumns":  "name"  }  }]  }  }

SQL example

ALTER  TABLE  cat.person  DROP  KEY  const_name;

Database support

Database Notes Auto rollback
DB2/LUW Supported No
DB2/z Supported No
Derby Supported No
Firebird Supported No
H2 Supported No
HyperSQL Supported No
INGRES Supported No
Informix Supported No
MariaDB Supported No
MySQL Supported No
Oracle Supported No
PostgreSQL Supported No
SQL Server Supported No
SQLite Not Supported No
Sybase Supported No
Sybase Anywhere Supported No