Created
March 9, 2019 14:23
-
-
Save goyalmohit/a29ca3a587ea39d3d348d36da7a2d628 to your computer and use it in GitHub Desktop.
Create table and populate data along with rollback statements using liquibase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- liquibase formatted sql | |
-- changeset mohitgoyal:20190309122800 | |
CREATE TABLE [dbo].[CustomerDetails5]( | |
[CustomerTypeID] [nchar](10) NULL, | |
[CustomerDesc] [nvarchar](max) NULL, | |
[CustomerAddress] [varchar](255) NULL | |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] | |
--rollback DROP TABLE [dbo].[CustomerDetails5] | |
-- changeset mohitgoyal:20190309175300 | |
insert into CustomerDetails5 values ('A','CustomerA','SanDiego') | |
insert into CustomerDetails5 values ('A','CustomerB','Miami') | |
-- rollback delete from CustomerDetails5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment