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

Drop an existing sequence

Available Attributes

NameDescription
catalogNameName of the catalog@ v3.0E.g. 'cat'
schemaNameName of the schemaE.g. 'public'
sequenceNameName of the sequence to dropE.g. 'seq_id'
<changeSet author="liquibase-docs" id="dropSequence-example">
    <dropSequence catalogName="cat"
            schemaName="public"
            sequenceName="seq_id"/>
</changeSet>
changeSet:
  id: dropSequence-example
  author: liquibase-docs
  changes:
  - dropSequence:
      catalogName: cat
      schemaName: public
      sequenceName: seq_id
{
  "changeSet": {
    "id": "dropSequence-example",
    "author": "liquibase-docs",
    "changes": [
      {
        "dropSequence": {
          "catalogName": "cat",
          "schemaName": "public",
          "sequenceName": "seq_id"
        }
      }]
    
  }
}

SQL Generated From Above Sample (SQL Server)

DROP SEQUENCE [public].seq_id;

Database Support

DatabaseNotesAuto Rollback
DB2/LUWSupportedNo
DB2/zSupportedNo
DerbySupportedNo
FirebirdSupportedNo
H2SupportedNo
HyperSQLSupportedNo
INGRESNot SupportedNo
InformixSupportedNo
MariaDBNot SupportedNo
MySQLNot SupportedNo
OracleSupportedNo
PostgreSQLSupportedNo
SQL ServerSupportedNo
SQLiteNot SupportedNo
SybaseNot SupportedNo
Sybase AnywhereSupportedNo