# Rollback without tag in changeset

**URL:** <https://forum.liquibase.org/t/rollback-without-tag-in-changeset/3522>\
**Category:** Community Answers\
**Created:** [June 6, 2017, 4:57am UTC](https://forum.liquibase.org/t/rollback-without-tag-in-changeset/3522 "2017-06-06T04:57:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SalmanRaza](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@SalmanRaza](https://forum.liquibase.org/u/SalmanRaza)\
**Post date:** [June 6, 2017, 4:57am UTC](https://forum.liquibase.org/t/rollback-without-tag-in-changeset/3522/1 "2017-06-06T04:57:00Z")

</div>

We are using the git flow model for our development and trying to integrate liquibase for managing the database versioning efficiently. The problem comes when a developer is working on a feature branch and has made a DB script which is executed on his database and another developer’s database, but it is not yet part of any release so it is not yet tagged. Now that feature is tested and becomes part of release and we tag the changeset and execute it on production.

The questions is how to rollback the changes made on the developer’s machine because there was no tag defined at the moment when the script got executed and when we try to update it will the current tag it will show error “The table already exists”.

How to manage these conditions through liquibase efficiently ?

---

<div class="post-metadata">

**Author:** ![madhukiran1988](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@madhukiran1988](https://forum.liquibase.org/u/madhukiran1988)\
**Post date:** [April 6, 2022, 1:22pm UTC](https://forum.liquibase.org/t/rollback-without-tag-in-changeset/3522/2 "2022-04-06T13:22:58Z")

</div>

Hi Salman, did you get any update on this issue ?

---

<div class="post-metadata">

**Author:** ![daryldoak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/daryldoak/32/764_2.png) [@daryldoak](https://forum.liquibase.org/u/daryldoak)\
**Post date:** [April 7, 2022, 3:10pm UTC](https://forum.liquibase.org/t/rollback-without-tag-in-changeset/3522/3 "2022-04-07T15:10:44Z")

</div>

@madhukiran1988

I’m not exactly sure if @SalmanRaza is referring to a Github tag, or a Liquibase tag, but it is possible to do a Liquibase rollback without a Liquibase tag. You can use the rollbackToDate or rollbackCount Liquibase command to rollback changesets.

> **[Liquibase Commands | Liquibase Docs](https://docs.liquibase.com/commands/home.html#database-rollback-commands)**
>
> This page contains a list of all commands available in all tiers of Liquibase.

One way to handle the “table already exist” error is to add a precondition to your changeset.

> **[preconditions | Liquibase Docs](https://docs.liquibase.com/concepts/changelogs/preconditions.html)**
>
> Reference information for using Preconditions in Liquibase. Preconditions control the execution of an update based on the state of the database and can be attached to a changelog or changeset.

---

<div class="post-metadata">

**Author:** ![MikeOlivas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/mikeolivas/32/183_2.png) [@MikeOlivas](https://forum.liquibase.org/u/MikeOlivas)\
**Post date:** [April 14, 2022, 1:29pm UTC](https://forum.liquibase.org/t/rollback-without-tag-in-changeset/3522/4 "2022-04-14T13:29:19Z")

</div>

Hi @SalmanRaza Agree with the statements above. In addition, if you need to rollback a certain changeset specifically, you can use the rollbackOneChangeset command in the Pro version for that specific changeset.

> **[rollback-one-changeset | Liquibase Docs](https://docs.liquibase.com/commands/rollback/rollback-one-changeset.html)**
>
> Reference information and use cases for the rollback-one-changeset command. The rollback-one-changeset command reverts (rolls back) one non-sequential changesets made during a previous change to your database. It is only available for Liquibase Pro...
