Skip to content

Commit

Permalink
Merge pull request liquibase#80 from liquibase/DAT-7352
Browse files Browse the repository at this point in the history
[DAT-7352] createTable, dropTable, renameTable expectedSqls fix
  • Loading branch information
AlexanderSashchenko authored Jun 11, 2021
2 parents 4d10693 + 170c8f0 commit 86b4139
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT TEST_TABLE_PKEY PRIMARY KEY (test_id))
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT test_table_pkey PRIMARY KEY (test_id))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT TEST_TABLE_PKEY PRIMARY KEY (test_id))
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT test_table_pkey PRIMARY KEY (test_id))
DROP TABLE test_table
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CREATE TABLE oldnametable (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT OLDNAMETABLE_PKEY PRIMARY KEY (test_id))
CREATE TABLE oldnametable (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT oldnametable_pkey PRIMARY KEY (test_id))
ALTER TABLE oldnametable RENAME TO newnametable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT TEST_TABLE_PKEY PRIMARY KEY (test_id))
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT test_table_pkey PRIMARY KEY (test_id))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT TEST_TABLE_PKEY PRIMARY KEY (test_id))
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT test_table_pkey PRIMARY KEY (test_id))
DROP TABLE test_table
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CREATE TABLE oldnametable (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT OLDNAMETABLE_PKEY PRIMARY KEY (test_id))
CREATE TABLE oldnametable (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT oldnametable_pkey PRIMARY KEY (test_id))
ALTER TABLE oldnametable RENAME TO newnametable
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- This test was created to reproduce a Liquibase bug. dropSequence doesn't work as it depends on creteSequence
-- https://github.com/liquibase/liquibase/issues/1429
CREATE SEQUENCE IF NOT EXISTS test_sequence AS int START WITH 1 INCREMENT BY 1 MINVALUE 1
CREATE SEQUENCE IF NOT EXISTS test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1
DROP SEQUENCE test_sequence CASCADE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- This test was created to reproduce a Liquibase bug. renameSequence doesn't work as it depends on creteSequence
-- https://github.com/liquibase/liquibase/issues/1429
CREATE SEQUENCE IF NOT EXISTS test_sequence AS int START WITH 1 INCREMENT BY 1 MINVALUE 1
CREATE SEQUENCE IF NOT EXISTS test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1
ALTER SEQUENCE test_sequence RENAME TO test_sequence_rename_test
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT TEST_TABLE_PKEY PRIMARY KEY (test_id))
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT test_table_pkey PRIMARY KEY (test_id))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT TEST_TABLE_PKEY PRIMARY KEY (test_id))
CREATE TABLE test_table (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT test_table_pkey PRIMARY KEY (test_id))
DROP TABLE test_table
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CREATE TABLE oldnametable (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT OLDNAMETABLE_PKEY PRIMARY KEY (test_id))
CREATE TABLE oldnametable (test_id INTEGER NOT NULL, test_column VARCHAR(50) NOT NULL, CONSTRAINT oldnametable_pkey PRIMARY KEY (test_id))
ALTER TABLE oldnametable RENAME TO newnametable

0 comments on commit 86b4139

Please sign in to comment.