# Can roll back be added after changeSet is executed?

**URL:** <https://forum.liquibase.org/t/can-roll-back-be-added-after-changeset-is-executed/8410>\
**Category:** General Discussion\
**Created:** [July 10, 2023, 11:24am UTC](https://forum.liquibase.org/t/can-roll-back-be-added-after-changeset-is-executed/8410 "2023-07-10T11:24:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.saeed](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@a.saeed](https://forum.liquibase.org/u/a.saeed)\
**Post date:** [July 10, 2023, 11:24am UTC](https://forum.liquibase.org/t/can-roll-back-be-added-after-changeset-is-executed/8410/1 "2023-07-10T11:24:05Z")

</div>

Suppose I have the following changeSet in an SQL file:

```sql
-- liquibase formatted sql

-- changeset amr:my_id
CREATE TABLE XYZ...

```

And then after executing this change set on the different environments I added a rollback statement to rollback this changeSet:

```sql
-- liquibase formatted sql

-- changeset amr:my_id
CREATE TABLE XYZ...
-- rollback DROP TABLE XYZ

```

Is adding rollback after executing a changeSet wrong? Does it affect the check sum?

---

<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:** [July 10, 2023, 2:01pm UTC](https://forum.liquibase.org/t/can-roll-back-be-added-after-changeset-is-executed/8410/2 "2023-07-10T14:01:54Z")

</div>

It works fine to add the rollback later. I’m using v4.21.1. These are the steps:

1. Ran the “update”, changeset did not have the rollback.
2. Added rollback section to the changeset.
3. Ran “rollback-count 1” and was successful, no checksum error.
