Liquibase® version 3.8.1 is now available! Get it for free.
2018 XML Announcement
News Liquibase 3.8.1 Released
06 Nov 2019

- and/or -

All Previous Posts >>

Change: ‘dropView’

Drops an existing view

Available Attributes

NameDescriptionRequired ForSupportsSince
catalogNameName of the catalogall3.0
schemaNameName of the schemaall
viewNameName of the view to dropallall
<changeSet author="liquibase-docs"
        id="dropView-example"
        objectQuotingStrategy="LEGACY">
    <dropView catalogName="cat"
            schemaName="public"
            viewName="v_person"/>
</changeSet>
changeSet:
  id: dropView-example
  author: liquibase-docs
  objectQuotingStrategy: LEGACY
  changes:
  - dropView:
      catalogName: cat
      schemaName: public
      viewName: v_person
{
  "changeSet": {
    "id": "dropView-example",
    "author": "liquibase-docs",
    "objectQuotingStrategy": "LEGACY",
    "changes": [
      {
        "dropView": {
          "catalogName": "cat",
          "schemaName": "public",
          "viewName": "v_person"
        }
      }]
    
  }
}

SQL Generated From Above Sample (MySQL)

DROP VIEW cat.v_person;

Database Support

DatabaseNotesAuto Rollback
DB2SupportedNo
DB2SupportedNo
DerbySupportedNo
FirebirdSupportedNo
H2SupportedNo
HyperSQLSupportedNo
INGRESSupportedNo
InformixSupportedNo
MariaDBSupportedNo
MySQLSupportedNo
OracleSupportedNo
PostgreSQLSupportedNo
SQL ServerSupportedNo
SQLiteSupportedNo
SybaseSupportedNo
Sybase AnywhereSupportedNo