-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added additional verification for GenerateChangelogTest #486
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
368c983
Added additional verification for GenerateChangelogTest
yodzhubeiskyi 174d20d
Changed sql validation logic for GenerateChangelogTest
yodzhubeiskyi d761241
Sql comparison fix for GenerateChangelogTest
yodzhubeiskyi 417fd31
Sql comparison fix for GenerateChangelogTest
yodzhubeiskyi 4db30fe
Sql comparison fix for GenerateChangelogTest
yodzhubeiskyi e99651b
Verification sql fix
yodzhubeiskyi 8b2ee02
Verification sql fix
yodzhubeiskyi fdc8612
Verification sql fix
yodzhubeiskyi 1ab99a5
Verification sql fix
yodzhubeiskyi 2e4c199
Verification sql fix
yodzhubeiskyi 5d83cb8
Fixed error message
yodzhubeiskyi 36d87a6
Fixed azure-postgers test data
yodzhubeiskyi be2472b
Fixed azure-postgers test data
yodzhubeiskyi 396a22a
Fixed azure-postgers test data
yodzhubeiskyi c3b47d4
Made requested changes
yodzhubeiskyi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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
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
30 changes: 0 additions & 30 deletions
30
src/main/resources/liquibase/harness/generateChangelog/expectedChangeLog/createTable.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/main/resources/liquibase/harness/generateChangelog/expectedChangeLog/createTable.sql
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/main/resources/liquibase/harness/generateChangelog/expectedChangeLog/createTable.yml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...esources/liquibase/harness/generateChangelog/verificationSql/cockroachdb/20.2/primary.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 @@ | ||
CREATE TABLE test_table (id BIGINT NOT NULL, rowid BIGINT DEFAULT unique_rowid() NOT NULL, CONSTRAINT "primary" PRIMARY KEY (id)); |
1 change: 1 addition & 0 deletions
1
...resources/liquibase/harness/generateChangelog/verificationSql/cockroachdb/22.1/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TABLE test_table (test_column BIGINT, rowid BIGINT DEFAULT unique_rowid() NOT NULL, "varcharColumn" VARCHAR(25), "intColumn" BIGINT, "dateColumn" date, CONSTRAINT test_table_pkey PRIMARY KEY (rowid)); |
3 changes: 3 additions & 0 deletions
3
...rces/liquibase/harness/generateChangelog/verificationSql/cockroachdb/22.1/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,3 @@ | ||
CREATE TABLE test_table (id BIGINT, rowid BIGINT DEFAULT unique_rowid() NOT NULL, CONSTRAINT test_table_pkey PRIMARY KEY (rowid)); | ||
|
||
CREATE INDEX idx_first_name ON test_table(id); |
1 change: 1 addition & 0 deletions
1
...rces/liquibase/harness/generateChangelog/verificationSql/cockroachdb/22.1/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TABLE test_table_xml (test_column BIGINT, rowid BIGINT DEFAULT unique_rowid() NOT NULL, CONSTRAINT test_table_xml_pkey PRIMARY KEY (rowid)); |
3 changes: 3 additions & 0 deletions
3
...resources/liquibase/harness/generateChangelog/verificationSql/cockroachdb/22.1/unique.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,3 @@ | ||
CREATE TABLE test_table (id BIGINT, rowid BIGINT DEFAULT unique_rowid() NOT NULL, CONSTRAINT test_table_pkey PRIMARY KEY (rowid)); | ||
|
||
ALTER TABLE test_table ADD CONSTRAINT test_unique_constraint UNIQUE (id); |
1 change: 1 addition & 0 deletions
1
...es/liquibase/harness/generateChangelog/verificationSql/cockroachdb/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE posts ADD CONSTRAINT test_check_constraint CHECK (((id > 0))); |
7 changes: 7 additions & 0 deletions
7
...quibase/harness/generateChangelog/verificationSql/cockroachdb/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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE test_table_base (id BIGINT NOT NULL, CONSTRAINT test_table_base_pkey PRIMARY KEY (id)); | ||
|
||
CREATE TABLE test_table_reference (id BIGINT NOT NULL, test_column BIGINT NOT NULL, CONSTRAINT test_table_reference_pkey PRIMARY KEY (id)); | ||
|
||
ALTER TABLE test_table_reference ADD CONSTRAINT test_table_reference_test_column_key UNIQUE (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; |
1 change: 1 addition & 0 deletions
1
...main/resources/liquibase/harness/generateChangelog/verificationSql/cockroachdb/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TABLE test_table (test_column BIGINT, rowid BIGINT DEFAULT unique_rowid() NOT NULL, "varcharColumn" VARCHAR(25), "intColumn" BIGINT, "dateColumn" date, CONSTRAINT "primary" PRIMARY KEY (rowid)); |
3 changes: 3 additions & 0 deletions
3
...resources/liquibase/harness/generateChangelog/verificationSql/cockroachdb/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,3 @@ | ||
CREATE TABLE test_table (id BIGINT, rowid BIGINT DEFAULT unique_rowid() NOT NULL, CONSTRAINT "primary" PRIMARY KEY (rowid)); | ||
|
||
CREATE INDEX idx_first_name ON test_table(id); |
1 change: 1 addition & 0 deletions
1
...ources/liquibase/harness/generateChangelog/verificationSql/cockroachdb/createSequence.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 @@ | ||
CREATE SEQUENCE IF NOT EXISTS test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1; |
1 change: 1 addition & 0 deletions
1
...resources/liquibase/harness/generateChangelog/verificationSql/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TABLE test_table_xml (test_column BIGINT, rowid BIGINT DEFAULT unique_rowid() NOT NULL, CONSTRAINT "primary" PRIMARY KEY (rowid)); |
1 change: 1 addition & 0 deletions
1
.../resources/liquibase/harness/generateChangelog/verificationSql/cockroachdb/createView.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 @@ | ||
CREATE VIEW test_view AS SELECT id, first_name, last_name, email FROM lbcat.authors; |
1 change: 1 addition & 0 deletions
1
...ain/resources/liquibase/harness/generateChangelog/verificationSql/cockroachdb/primary.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 @@ | ||
CREATE TABLE test_table (id BIGINT NOT NULL, rowid BIGINT DEFAULT unique_rowid() NOT NULL, CONSTRAINT test_pk PRIMARY KEY (id)); |
3 changes: 3 additions & 0 deletions
3
...main/resources/liquibase/harness/generateChangelog/verificationSql/cockroachdb/unique.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,3 @@ | ||
CREATE TABLE test_table (id BIGINT, rowid BIGINT DEFAULT unique_rowid() NOT NULL, CONSTRAINT "primary" PRIMARY KEY (rowid)); | ||
|
||
ALTER TABLE test_table ADD CONSTRAINT test_unique_constraint UNIQUE (id); |
3 changes: 3 additions & 0 deletions
3
...main/resources/liquibase/harness/generateChangelog/verificationSql/db2-luw/createView.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,3 @@ | ||
CREATE TABLE TEST_TABLE (ID INTEGER NOT NULL, CONSTRAINT PK_TEST_TABLE PRIMARY KEY (ID)); | ||
|
||
CREATE VIEW test_view AS select id from test_table; |
11 changes: 11 additions & 0 deletions
11
...esources/liquibase/harness/generateChangelog/verificationSql/edb-edb/10/createTrigger.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,11 @@ | ||
CREATE OR REPLACE FUNCTION test_function() | ||
RETURNS trigger | ||
LANGUAGE plpgsql | ||
AS $function$ | ||
BEGIN | ||
RAISE NOTICE 'Test trigger function created'; | ||
RETURN NEW; | ||
END; | ||
$function$; | ||
|
||
CREATE TRIGGER test_trigger BEFORE INSERT ON posts FOR EACH ROW EXECUTE PROCEDURE test_function(); |
11 changes: 11 additions & 0 deletions
11
...esources/liquibase/harness/generateChangelog/verificationSql/edb-edb/11/createTrigger.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,11 @@ | ||
CREATE OR REPLACE FUNCTION test_function() | ||
RETURNS trigger | ||
LANGUAGE plpgsql | ||
AS $function$ | ||
BEGIN | ||
RAISE NOTICE 'Test trigger function created'; | ||
RETURN NEW; | ||
END; | ||
$function$; | ||
|
||
CREATE TRIGGER test_trigger BEFORE INSERT ON posts FOR EACH ROW EXECUTE PROCEDURE test_function(); |
1 change: 1 addition & 0 deletions
1
...ources/liquibase/harness/generateChangelog/verificationSql/edb-edb/9.5/createSequence.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 @@ | ||
CREATE SEQUENCE IF NOT EXISTS test_sequence; |
11 changes: 11 additions & 0 deletions
11
...sources/liquibase/harness/generateChangelog/verificationSql/edb-edb/9.5/createTrigger.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,11 @@ | ||
CREATE OR REPLACE FUNCTION test_function() | ||
RETURNS trigger | ||
LANGUAGE plpgsql | ||
AS $function$ | ||
BEGIN | ||
RAISE NOTICE 'Test trigger function created'; | ||
RETURN NEW; | ||
END; | ||
$function$; | ||
|
||
CREATE TRIGGER test_trigger BEFORE INSERT ON posts FOR EACH ROW EXECUTE PROCEDURE test_function(); |
1 change: 1 addition & 0 deletions
1
...ources/liquibase/harness/generateChangelog/verificationSql/edb-edb/9.6/createSequence.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 @@ | ||
CREATE SEQUENCE IF NOT EXISTS test_sequence; |
11 changes: 11 additions & 0 deletions
11
...sources/liquibase/harness/generateChangelog/verificationSql/edb-edb/9.6/createTrigger.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,11 @@ | ||
CREATE OR REPLACE FUNCTION test_function() | ||
RETURNS trigger | ||
LANGUAGE plpgsql | ||
AS $function$ | ||
BEGIN | ||
RAISE NOTICE 'Test trigger function created'; | ||
RETURN NEW; | ||
END; | ||
$function$; | ||
|
||
CREATE TRIGGER test_trigger BEFORE INSERT ON posts FOR EACH ROW EXECUTE PROCEDURE test_function(); |
1 change: 1 addition & 0 deletions
1
...ources/liquibase/harness/generateChangelog/verificationSql/edb-edb/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE posts ADD CONSTRAINT test_check_constraint CHECK (((id > 0))); |
7 changes: 7 additions & 0 deletions
7
...s/liquibase/harness/generateChangelog/verificationSql/edb-edb/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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE test_table_reference (id INTEGER NOT NULL, test_column INTEGER NOT NULL, CONSTRAINT test_table_reference_pkey PRIMARY KEY (id)); | ||
|
||
ALTER TABLE test_table_reference ADD CONSTRAINT test_table_reference_test_column_key UNIQUE (test_column); | ||
|
||
CREATE TABLE test_table_base (id INTEGER NOT NULL, CONSTRAINT test_table_base_pkey PRIMARY KEY (id)); | ||
|
||
ALTER TABLE test_table_base ADD CONSTRAINT test_fk FOREIGN KEY (id) REFERENCES test_table_reference (test_column) ON UPDATE RESTRICT ON DELETE CASCADE; |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/generateChangelog/verificationSql/edb-edb/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TABLE test_table (test_column INTEGER, "varcharColumn" VARCHAR(25), "intColumn" INTEGER, "dateColumn" TIMESTAMP WITHOUT TIME ZONE); |
9 changes: 9 additions & 0 deletions
9
.../resources/liquibase/harness/generateChangelog/verificationSql/edb-edb/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE OR REPLACE FUNCTION test_function() | ||
RETURNS trigger | ||
LANGUAGE plpgsql | ||
AS $function$ | ||
BEGIN | ||
RAISE NOTICE 'Test function created'; | ||
RETURN NEW; | ||
END; | ||
$function$; |
3 changes: 3 additions & 0 deletions
3
...ain/resources/liquibase/harness/generateChangelog/verificationSql/edb-edb/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,3 @@ | ||
CREATE TABLE test_table (id INTEGER); | ||
|
||
CREATE INDEX idx_first_name ON test_table(id); |
3 changes: 3 additions & 0 deletions
3
...n/resources/liquibase/harness/generateChangelog/verificationSql/edb-edb/createPackage.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,3 @@ | ||
CREATE OR REPLACE PACKAGE test_package IS | ||
PROCEDURE test_procedure(); | ||
END; |
10 changes: 10 additions & 0 deletions
10
...sources/liquibase/harness/generateChangelog/verificationSql/edb-edb/createPackageBody.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,10 @@ | ||
CREATE OR REPLACE PACKAGE test_package IS | ||
PROCEDURE test_procedure(); | ||
END; | ||
|
||
CREATE OR REPLACE PACKAGE BODY test_package IS | ||
PROCEDURE test_procedure() IS | ||
BEGIN | ||
DELETE FROM posts WHERE author_id = '15'; | ||
END; | ||
END |
7 changes: 7 additions & 0 deletions
7
...resources/liquibase/harness/generateChangelog/verificationSql/edb-edb/createProcedure.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,7 @@ | ||
CREATE OR REPLACE PROCEDURE test_procedure() | ||
SECURITY DEFINER | ||
AS $procedure$ | ||
BEGIN | ||
END; | ||
$procedure$ | ||
LANGUAGE edbspl; |
1 change: 1 addition & 0 deletions
1
.../resources/liquibase/harness/generateChangelog/verificationSql/edb-edb/createSequence.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 @@ | ||
CREATE SEQUENCE IF NOT EXISTS test_sequence AS integer START WITH 1 INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1; |
1 change: 1 addition & 0 deletions
1
...n/resources/liquibase/harness/generateChangelog/verificationSql/edb-edb/createSynonym.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 @@ | ||
CREATE PUBLIC SYNONYM TEST_SYNONYM FOR AUTHORS; |
1 change: 1 addition & 0 deletions
1
...ain/resources/liquibase/harness/generateChangelog/verificationSql/edb-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 |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TABLE test_table_xml (test_column INTEGER); |
11 changes: 11 additions & 0 deletions
11
...n/resources/liquibase/harness/generateChangelog/verificationSql/edb-edb/createTrigger.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,11 @@ | ||
CREATE OR REPLACE FUNCTION test_function() | ||
RETURNS trigger | ||
LANGUAGE plpgsql | ||
AS $function$ | ||
BEGIN | ||
RAISE NOTICE 'Test trigger function created'; | ||
RETURN NEW; | ||
END; | ||
$function$; | ||
|
||
CREATE TRIGGER test_trigger BEFORE INSERT ON posts FOR EACH ROW EXECUTE FUNCTION test_function(); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use
TestConfig.instance.inputFormat
here? Or maybe we can change to build testInput in other way as we don't really pick up only files with this extension