tagExists <tag string> command

The tagExists <tag string> command checks whether the tag you specify already exists in your database.

Uses

The tagExists <tag string> command is typically used to identify whether the specified tag exists in the database or specifically in the DATABASECHANGELOG table. Running the tagExists <tag string> command checks for the tag and, based on whether it exists or not, provides the appropriate output.

Running the tagExists <tag string> command

To run the tagExists <tag string> command, you can specify the driver, classpath, and URL in your liquibase.properties file. For more information, see Creating and configuring a liquibase.properties file. You can also specify these properties in your command line.

Then run the tagExists <tag string> command:

liquibase --changeLogFile=communityOnly.xml tagExists myTag

Note: Enter the name of the changelog and the tag that you want to use in place of communityOnly.xml and myTag.

tagExists <tag string> global attributes

Attribute

Definition

Requirement

--changeLogFile

The root changelog

Required

--url

The JDBC database connection URL

Required

--username

The database username

Required

--password

The database password

Required

tagExists <tag string> command attributes

Attribute

Definition

Requirement

<tag>

The tag you can add to changesets to determine which changesets in the changelog to evaluate based on their tags.

Required