-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #583 from liquibase/DAT-14657
DAT-14657. Fixed advanced test failures.
- Loading branch information
Showing
11 changed files
with
66 additions
and
27 deletions.
There are no files selected for viewing
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
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
4 changes: 2 additions & 2 deletions
4
...resources/liquibase/harness/compatibility/advanced/initSql/primary/addCheckConstraint.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_xml (test_column INT NULL) | ||
ALTER TABLE test_table_xml ADD CONSTRAINT test_check_constraint CHECK (test_column > 0) | ||
CREATE TABLE test_table_xml (test_column INT NULL); | ||
ALTER TABLE test_table_xml ADD CONSTRAINT test_check_constraint CHECK (test_column > 0); |
8 changes: 4 additions & 4 deletions
8
...rces/liquibase/harness/compatibility/advanced/initSql/primary/addForeignKeyConstraint.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 @@ | ||
CREATE TABLE test_table_base (id INT NOT NULL, test_column INT NULL, CONSTRAINT PK_TEST_TABLE_BASE PRIMARY KEY (id)) | ||
CREATE TABLE test_table_reference (id INT NOT NULL, test_column INT NULL, CONSTRAINT PK_TEST_TABLE_REFERENCE PRIMARY KEY (id)) | ||
CREATE INDEX test_table_reference_index ON test_table_reference(test_column) | ||
ALTER TABLE test_table_base ADD CONSTRAINT test_fk FOREIGN KEY (id) REFERENCES test_table_reference (test_column) ON UPDATE RESTRICT ON DELETE CASCADE | ||
CREATE TABLE test_table_base (id INT NOT NULL, test_column INT NULL, CONSTRAINT PK_TEST_TABLE_BASE PRIMARY KEY (id)); | ||
CREATE TABLE test_table_reference (id INT NOT NULL, test_column INT NULL, CONSTRAINT PK_TEST_TABLE_REFERENCE PRIMARY KEY (id)); | ||
CREATE INDEX test_table_reference_index ON test_table_reference(test_column); | ||
ALTER TABLE test_table_base ADD CONSTRAINT test_fk FOREIGN KEY (id) REFERENCES test_table_reference (test_column) ON UPDATE RESTRICT ON DELETE CASCADE; |
10 changes: 5 additions & 5 deletions
10
src/main/resources/liquibase/harness/compatibility/advanced/initSql/primary/column.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,5 +1,5 @@ | ||
CREATE TABLE test_table (test_column INT NULL) | ||
ALTER TABLE test_table ADD varcharColumn VARCHAR(25) NULL, ADD intColumn INT NULL, ADD dateColumn date NULL | ||
UPDATE test_table SET varcharColumn = 'INITIAL_VALUE' | ||
UPDATE test_table SET intColumn = 5 | ||
UPDATE test_table SET dateColumn = '2020-09-21' | ||
CREATE TABLE test_table (test_column INT NULL); | ||
ALTER TABLE test_table ADD varcharColumn VARCHAR(25) NULL, ADD intColumn INT NULL, ADD dateColumn date NULL; | ||
UPDATE test_table SET varcharColumn = 'INITIAL_VALUE'; | ||
UPDATE test_table SET intColumn = 5; | ||
UPDATE test_table SET dateColumn = '2020-09-21'; |
2 changes: 1 addition & 1 deletion
2
...ain/resources/liquibase/harness/compatibility/advanced/initSql/primary/createFunction.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
4 changes: 2 additions & 2 deletions
4
src/main/resources/liquibase/harness/compatibility/advanced/initSql/primary/createIndex.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 lbcat.test_table (id INT NULL, test_column INT NULL) | ||
CREATE INDEX idx_first_name ON lbcat.test_table(id) | ||
CREATE TABLE lbcat.test_table (id INT NULL, test_column INT NULL); | ||
CREATE INDEX idx_first_name ON lbcat.test_table(id); |
4 changes: 2 additions & 2 deletions
4
...sources/liquibase/harness/compatibility/advanced/initSql/secondary/addCheckConstraint.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_xml (test_column INT NULL) | ||
ALTER TABLE test_table_xml ADD CONSTRAINT secondary_check_constraint CHECK (test_column > 0) | ||
CREATE TABLE test_table_xml (test_column INT NULL); | ||
ALTER TABLE test_table_xml ADD CONSTRAINT secondary_check_constraint CHECK (test_column > 0); |
8 changes: 4 additions & 4 deletions
8
...es/liquibase/harness/compatibility/advanced/initSql/secondary/addForeignKeyConstraint.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 @@ | ||
CREATE TABLE test_table_base (id INT NOT NULL, test_column INT NULL, CONSTRAINT PK_TEST_TABLE_BASE PRIMARY KEY (id)) | ||
CREATE TABLE test_table_reference (id INT NOT NULL, test_column INT NULL, CONSTRAINT PK_TEST_TABLE_REFERENCE PRIMARY KEY (id)) | ||
CREATE INDEX test_table_base_index ON test_table_base(test_column) | ||
ALTER TABLE test_table_reference ADD CONSTRAINT secondary_test_fk FOREIGN KEY (id) REFERENCES test_table_base (test_column) ON UPDATE RESTRICT ON DELETE CASCADE | ||
CREATE TABLE test_table_base (id INT NOT NULL, test_column INT NULL, CONSTRAINT PK_TEST_TABLE_BASE PRIMARY KEY (id)); | ||
CREATE TABLE test_table_reference (id INT NOT NULL, test_column INT NULL, CONSTRAINT PK_TEST_TABLE_REFERENCE PRIMARY KEY (id)); | ||
CREATE INDEX test_table_base_index ON test_table_base(test_column); | ||
ALTER TABLE test_table_reference ADD CONSTRAINT secondary_test_fk FOREIGN KEY (id) REFERENCES test_table_base (test_column) ON UPDATE RESTRICT ON DELETE CASCADE; |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/compatibility/advanced/initSql/secondary/column.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_column INT NULL, secondary_column INT NULL) | ||
CREATE TABLE test_table (test_column INT NULL, secondary_column INT NULL); |
2 changes: 2 additions & 0 deletions
2
...main/resources/liquibase/harness/compatibility/advanced/initSql/secondary/createIndex.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE TABLE secondarydb.test_table (id INT NULL, test_column INT NULL); | ||
CREATE INDEX idx_secondary ON secondarydb.test_table(test_column); |