forked from liquibase/liquibase-test-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
createTable, dropTable, renameTable expectedSqls fix
- Loading branch information
1 parent
4d10693
commit 170c8f0
Showing
11 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/cockroachdb/createTable.sql
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
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)) |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/cockroachdb/dropTable.sql
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
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 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/cockroachdb/renameTable.sql
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
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 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/edb/createTable.sql
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
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)) |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/edb/dropTable.sql
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
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 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/edb/renameTable.sql
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
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 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropSequence.sql
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
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 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/renameSequence.sql
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
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 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/postgresql/createTable.sql
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
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)) |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/postgresql/dropTable.sql
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
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 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/postgresql/renameTable.sql
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
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 |