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

Applies a tag to the database for future rollback

Available Attributes

NameDescriptionRequired ForSupportsSince
tagTag to applyall
<changeSet author="liquibase-docs"
        id="tagDatabase-example"
        objectQuotingStrategy="LEGACY">
    <tagDatabase tag="version_1.3"/>
</changeSet>
changeSet:
  id: tagDatabase-example
  author: liquibase-docs
  objectQuotingStrategy: LEGACY
  changes:
  - tagDatabase:
      tag: version_1.3
{
  "changeSet": {
    "id": "tagDatabase-example",
    "author": "liquibase-docs",
    "objectQuotingStrategy": "LEGACY",
    "changes": [
      {
        "tagDatabase": {
          "tag": "version_1.3"
        }
      }]
    
  }
}

SQL Generated From Above Sample (MySQL)

Database Support

DatabaseNotesAuto Rollback
DB2SupportedYes
DB2SupportedYes
DerbySupportedYes
FirebirdSupportedYes
H2SupportedYes
HyperSQLSupportedYes
INGRESSupportedYes
InformixSupportedYes
MariaDBSupportedYes
MySQLSupportedYes
OracleSupportedYes
PostgreSQLSupportedYes
SQL ServerSupportedYes
SQLiteSupportedYes
SybaseSupportedYes
Sybase AnywhereSupportedYes