Skip to content

Commit

Permalink
Added example rollback scripts (#2367)
Browse files Browse the repository at this point in the history
When running the examples with the example-changelog.sql you cannot rollback your changes.
This enhancement allows you to see the example scripts you would use to rollback your changes and allows you to use the rollback commands with this changelog. Also helps the init project
  • Loading branch information
molivasdat committed Feb 4, 2022
1 parent fed0521 commit 3bc1058
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -8,6 +8,7 @@ create table person (
address2 varchar(50),
city varchar(30)
)
--rollback DROP TABLE person;

--changeset your.name:2
create table company (
Expand All @@ -17,7 +18,9 @@ create table company (
address2 varchar(50),
city varchar(30)
)
--rollback DROP TABLE company;

--changeset other.dev:3
alter table person add column country varchar(2)
--rollback ALTER TABLE person DROP COLUMN country;

0 comments on commit 3bc1058

Please sign in to comment.