-
Notifications
You must be signed in to change notification settings - Fork 16
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 #594 from liquibase/DAT-14667
DAT-14667. added oracle 23.0.0 to the CI/CD
- Loading branch information
Showing
74 changed files
with
267 additions
and
12 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
19 changes: 19 additions & 0 deletions
19
.../liquibase/harness/change/expectedSnapshot/oracle/23.0.0/addDefaultValueSequenceNext.json
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,19 @@ | ||
{ | ||
"snapshot": { | ||
"objects": { | ||
"liquibase.structure.core.Column": [ | ||
{ | ||
"column": { | ||
"defaultValue": "LIQUIBASE.test_sequence.nextval\\!\\{liquibase.statement.DatabaseFunction\\}", | ||
"name": "SEQUENCE_REFERENCED_COLUMN", | ||
"nullable": true, | ||
"type": { | ||
"dataTypeId": "3\\!\\{java.lang.Integer\\}", | ||
"typeName": "NUMBER" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addAutoIncrement.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,4 @@ | ||
INVALID TEST | ||
|
||
addAutoIncrement is not supported for Oracle | ||
--https://docs.liquibase.com/change-types/add-auto-increment.html |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 LIQUIBASE.posts ADD CONSTRAINT test_check_constraint CHECK (id > 0) |
6 changes: 6 additions & 0 deletions
6
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addColumn.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,6 @@ | ||
ALTER TABLE LIQUIBASE.authors ADD varcharColumn VARCHAR2(25) | ||
ALTER TABLE LIQUIBASE.authors ADD intColumn INTEGER | ||
ALTER TABLE LIQUIBASE.authors ADD dateColumn date | ||
UPDATE LIQUIBASE.authors SET varcharColumn = 'INITIAL_VALUE' | ||
UPDATE LIQUIBASE.authors SET intColumn = 5 | ||
UPDATE LIQUIBASE.authors SET dateColumn = TO_DATE('2020-09-21', 'YYYY-MM-DD') |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addDefaultValue.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 LIQUIBASE.posts MODIFY title DEFAULT 'title_test' |
2 changes: 2 additions & 0 deletions
2
...n/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addDefaultValueBoolean.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 @@ | ||
ALTER TABLE LIQUIBASE.authors ADD booleanColumn NUMBER(1) | ||
ALTER TABLE LIQUIBASE.authors MODIFY booleanColumn DEFAULT 1 |
1 change: 1 addition & 0 deletions
1
.../resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addDefaultValueComputed.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 LIQUIBASE.posts MODIFY inserted_date DEFAULT CURRENT_TIMESTAMP |
2 changes: 2 additions & 0 deletions
2
...main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addDefaultValueDate.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 @@ | ||
ALTER TABLE LIQUIBASE.authors ADD dateTimeColumn TIMESTAMP | ||
ALTER TABLE LIQUIBASE.authors MODIFY dateTimeColumn DEFAULT TO_DATE('2008-02-12 12:34:03', 'YYYY-MM-DD HH24:MI:SS') |
2 changes: 2 additions & 0 deletions
2
...n/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addDefaultValueNumeric.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 @@ | ||
ALTER TABLE LIQUIBASE.authors ADD numericColumn NUMBER | ||
ALTER TABLE LIQUIBASE.authors MODIFY numericColumn DEFAULT 100000000 |
3 changes: 3 additions & 0 deletions
3
...ources/liquibase/harness/change/expectedSql/oracle/23.0.0/addDefaultValueSequenceNext.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 SEQUENCE LIQUIBASE.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 | ||
ALTER TABLE LIQUIBASE.authors ADD sequence_referenced_column NUMBER | ||
ALTER TABLE LIQUIBASE.authors MODIFY sequence_referenced_column DEFAULT LIQUIBASE.test_sequence.nextval |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addForeignKey.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 LIQUIBASE.posts ADD CONSTRAINT fk_posts_authors_test FOREIGN KEY (author_id) REFERENCES LIQUIBASE.authors (id) ON DELETE CASCADE |
3 changes: 3 additions & 0 deletions
3
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addLookupTable.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 LIQUIBASE.authors_data AS SELECT DISTINCT email AS authors_email FROM LIQUIBASE.authors WHERE email IS NOT NULL | ||
ALTER TABLE LIQUIBASE.authors_data ADD PRIMARY KEY (authors_email) | ||
ALTER TABLE LIQUIBASE.authors ADD CONSTRAINT FK_AUTHORS_AUTHORS_DATA FOREIGN KEY (email) REFERENCES LIQUIBASE.authors_data (authors_email) |
1 change: 1 addition & 0 deletions
1
...ain/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addNotNullConstraint.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 LIQUIBASE.posts MODIFY inserted_date CONSTRAINT test_notNull NOT NULL |
6 changes: 6 additions & 0 deletions
6
...ces/liquibase/harness/change/expectedSql/oracle/23.0.0/addNotNullConstraintBitBoolean.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,6 @@ | ||
CREATE TABLE LIQUIBASE.test_table (id INTEGER, bit_col NUMBER(1), boolean_col NUMBER(1)) | ||
INSERT INTO LIQUIBASE.test_table (id) VALUES (1) | ||
UPDATE LIQUIBASE.test_table SET bit_col = 1 WHERE bit_col IS NULL | ||
ALTER TABLE LIQUIBASE.test_table MODIFY bit_col NOT NULL | ||
UPDATE LIQUIBASE.test_table SET boolean_col = 1 WHERE boolean_col IS NULL | ||
ALTER TABLE LIQUIBASE.test_table MODIFY boolean_col NOT NULL |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addPrimaryKey.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 LIQUIBASE.test_table_addpk (test_id INTEGER, test_column VARCHAR2(50)) | ||
ALTER TABLE LIQUIBASE.test_table_addpk ADD CONSTRAINT pk_test_table_addpk PRIMARY KEY (test_id) |
1 change: 1 addition & 0 deletions
1
...main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/addUniqueConstraint.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 LIQUIBASE.authors ADD CONSTRAINT test_unique_constraint UNIQUE (email) DEFERRABLE INITIALLY DEFERRED |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/alterSequence.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 SEQUENCE LIQUIBASE.test_sequence START WITH 2 INCREMENT BY 1 MINVALUE 1 | ||
ALTER SEQUENCE LIQUIBASE.test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 ORDER CACHE 9 CYCLE |
2 changes: 2 additions & 0 deletions
2
...sources/liquibase/harness/change/expectedSql/oracle/23.0.0/alterSequenceCycleProperty.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 SEQUENCE LIQUIBASE.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 MAXVALUE 100 CYCLE | ||
ALTER SEQUENCE LIQUIBASE.test_sequence NOCYCLE |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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,2 @@ | ||
CREATE FUNCTION test_function(id IN NUMBER) RETURN VARCHAR2 AS BEGIN RETURN '2'; END | ||
/ |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 INDEX LIQUIBASE.idx_first_name ON LIQUIBASE.authors(first_name) | ||
CREATE INDEX LIQUIBASE.idx_last_name ON LIQUIBASE.authors(last_name) |
4 changes: 4 additions & 0 deletions
4
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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,4 @@ | ||
CREATE PACKAGE test_package AS | ||
PROCEDURE test_procedure | ||
END test_package | ||
/ |
11 changes: 11 additions & 0 deletions
11
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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,11 @@ | ||
CREATE OR REPLACE PACKAGE test_package | ||
AS | ||
PROCEDURE test_procedure | ||
END test_package | ||
/ | ||
CREATE OR REPLACE PACKAGE BODY test_package | ||
IS | ||
PROCEDURE test_procedure IS | ||
BEGIN END test_procedure | ||
END test_package | ||
/ |
5 changes: 5 additions & 0 deletions
5
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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,5 @@ | ||
CREATE OR REPLACE PROCEDURE test_procedure | ||
AS | ||
BEGIN | ||
END | ||
/ |
4 changes: 4 additions & 0 deletions
4
.../resources/liquibase/harness/change/expectedSql/oracle/23.0.0/createProcedureFromFile.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,4 @@ | ||
CREATE PROCEDURE test_procedure() | ||
BEGIN | ||
END | ||
/ |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 LIQUIBASE.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 OR REPLACE PUBLIC SYNONYM test_synonym FOR LIQUIBASE.authors |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 LIQUIBASE.test_table (test_id INTEGER NOT NULL, test_column VARCHAR2(50) NOT NULL, CONSTRAINT PK_TEST_TABLE PRIMARY KEY (test_id)) |
1 change: 1 addition & 0 deletions
1
.../resources/liquibase/harness/change/expectedSql/oracle/23.0.0/createTableDataTypeText.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 LIQUIBASE.createTableDataTypeText (textCol CLOB) |
1 change: 1 addition & 0 deletions
1
...ain/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/createTableTimestamp.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 LIQUIBASE.lms_create_table_test (lms_test_id INTEGER, lms_test_timestamp TIMESTAMP) |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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,2 @@ | ||
CREATE OR REPLACE TRIGGER test_trigger BEFORE INSERT ON posts BEGIN END | ||
/ |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 LIQUIBASE.test_view AS select id, first_name, last_name, email from authors |
1 change: 1 addition & 0 deletions
1
...main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/datatypes.character.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 LIQUIBASE."datatypes.character_test_table" ("varchar2.1" VARCHAR2(1), "varchar2.10" VARCHAR2(10), "varchar2.100" VARCHAR2(100), "varchar2.1000" VARCHAR2(1000)) |
2 changes: 2 additions & 0 deletions
2
...n/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/disableCheckConstraint.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 @@ | ||
ALTER TABLE LIQUIBASE.posts ADD CONSTRAINT test_check_constraint CHECK (id > 0) | ||
ALTER TABLE LIQUIBASE.posts DISABLE CONSTRAINT test_check_constraint |
3 changes: 3 additions & 0 deletions
3
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/disableTrigger.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 TRIGGER test_trigger BEFORE INSERT ON posts BEGIN END | ||
/ | ||
ALTER TRIGGER LIQUIBASE.test_trigger DISABLE |
2 changes: 2 additions & 0 deletions
2
...urces/liquibase/harness/change/expectedSql/oracle/23.0.0/dropAllForeignKeyConstraints.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 @@ | ||
ALTER TABLE LIQUIBASE.posts ADD CONSTRAINT fk_posts_authors_test_1 FOREIGN KEY (author_id) REFERENCES LIQUIBASE.authors (id) | ||
ALTER TABLE LIQUIBASE.posts ADD CONSTRAINT fk_posts_authors_test_2 FOREIGN KEY (id) REFERENCES LIQUIBASE.authors (id) |
2 changes: 2 additions & 0 deletions
2
...main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropCheckConstraint.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 @@ | ||
ALTER TABLE LIQUIBASE.posts ADD CONSTRAINT test_check_constraint CHECK (id > 0) | ||
ALTER TABLE LIQUIBASE.posts DROP CONSTRAINT test_check_constraint |
3 changes: 3 additions & 0 deletions
3
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropColumn.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 @@ | ||
ALTER TABLE LIQUIBASE.posts ADD varcharColumn VARCHAR2(25) | ||
UPDATE LIQUIBASE.posts SET varcharColumn = 'INITIAL_VALUE' | ||
ALTER TABLE LIQUIBASE.posts DROP COLUMN varcharColumn |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropDefaultValue.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 @@ | ||
ALTER TABLE LIQUIBASE.posts MODIFY title DEFAULT 'title_test' | ||
ALTER TABLE LIQUIBASE.posts MODIFY title DEFAULT NULL |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropForeignKey.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 @@ | ||
ALTER TABLE LIQUIBASE.posts ADD CONSTRAINT fk_posts_authors_test FOREIGN KEY (author_id) REFERENCES LIQUIBASE.authors (id) ON DELETE CASCADE | ||
ALTER TABLE LIQUIBASE.posts DROP CONSTRAINT fk_posts_authors_test |
3 changes: 3 additions & 0 deletions
3
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropFunction.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 FUNCTION test_function(id IN NUMBER) RETURN VARCHAR2 AS BEGIN RETURN '2'; END | ||
/ | ||
DROP FUNCTION LIQUIBASE.test_function |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropIndex.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 INDEX LIQUIBASE.idx_first_name ON LIQUIBASE.authors(first_name) | ||
DROP INDEX LIQUIBASE.idx_first_name |
2 changes: 2 additions & 0 deletions
2
...in/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropNotNullConstraint.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 @@ | ||
ALTER TABLE LIQUIBASE.posts MODIFY inserted_date CONSTRAINT test_notNull NOT NULL | ||
ALTER TABLE LIQUIBASE.posts MODIFY inserted_date NULL |
5 changes: 5 additions & 0 deletions
5
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropPackage.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,5 @@ | ||
CREATE OR REPLACE PACKAGE test_package AS | ||
PROCEDURE test_procedure | ||
END test_package | ||
/ | ||
DROP PACKAGE LIQUIBASE.test_package |
13 changes: 13 additions & 0 deletions
13
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropPackageBody.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,13 @@ | ||
CREATE OR REPLACE PACKAGE test_package | ||
AS | ||
PROCEDURE test_procedure | ||
END test_package | ||
/ | ||
CREATE OR REPLACE PACKAGE BODY test_package | ||
IS | ||
PROCEDURE test_procedure IS | ||
BEGIN END test_procedure | ||
END test_package | ||
/ | ||
DROP PACKAGE BODY LIQUIBASE.test_package | ||
DROP PACKAGE LIQUIBASE.test_package |
3 changes: 3 additions & 0 deletions
3
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropPrimaryKey.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 LIQUIBASE.test_table_droppk (test_id INTEGER, test_column VARCHAR2(50)) | ||
ALTER TABLE LIQUIBASE.test_table_droppk ADD CONSTRAINT pk_test_table_droppk PRIMARY KEY (test_id) | ||
ALTER TABLE LIQUIBASE.test_table_droppk DROP PRIMARY KEY DROP INDEX |
6 changes: 6 additions & 0 deletions
6
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropProcedure.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,6 @@ | ||
CREATE OR REPLACE PROCEDURE test_procedure | ||
AS | ||
BEGIN | ||
END | ||
/ | ||
DROP PROCEDURE LIQUIBASE.test_procedure |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE SEQUENCE LIQUIBASE.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 | ||
DROP SEQUENCE LIQUIBASE.test_sequence |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropSynonym.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 OR REPLACE PUBLIC SYNONYM test_synonym FOR LIQUIBASE.authors | ||
DROP PUBLIC SYNONYM test_synonym |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE TABLE LIQUIBASE.test_table (test_id INTEGER NOT NULL, test_column VARCHAR2(50) NOT NULL, CONSTRAINT PK_TEST_TABLE PRIMARY KEY (test_id)) | ||
DROP TABLE LIQUIBASE.test_table |
3 changes: 3 additions & 0 deletions
3
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropTrigger.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 TRIGGER test_trigger BEFORE INSERT ON posts BEGIN END | ||
/ | ||
DROP TRIGGER LIQUIBASE.test_trigger |
2 changes: 2 additions & 0 deletions
2
...ain/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropUniqueConstraint.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 @@ | ||
ALTER TABLE LIQUIBASE.authors ADD CONSTRAINT test_unique_constraint UNIQUE (email) DEFERRABLE INITIALLY DEFERRED | ||
ALTER TABLE LIQUIBASE.authors DROP CONSTRAINT test_unique_constraint DROP INDEX |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/dropView.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 VIEW LIQUIBASE.test_view AS select id, first_name, last_name, email from authors | ||
DROP VIEW LIQUIBASE.test_view |
2 changes: 2 additions & 0 deletions
2
...in/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/enableCheckConstraint.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 @@ | ||
ALTER TABLE LIQUIBASE.posts ADD CONSTRAINT test_check_constraint CHECK (id > 0) DISABLE | ||
ALTER TABLE LIQUIBASE.posts ENABLE CONSTRAINT test_check_constraint |
5 changes: 5 additions & 0 deletions
5
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/enableTrigger.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,5 @@ | ||
CREATE OR REPLACE TRIGGER test_trigger BEFORE INSERT ON posts BEGIN END | ||
/ | ||
ALTER TRIGGER LIQUIBASE.test_trigger DISABLE | ||
/ | ||
ALTER TRIGGER LIQUIBASE.test_trigger ENABLE |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/markUnused.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 LIQUIBASE.test_table (test_id INTEGER NOT NULL, test_column VARCHAR2(50) NOT NULL, CONSTRAINT PK_TEST_TABLE PRIMARY KEY (test_id)) | ||
ALTER TABLE LIQUIBASE.test_table SET UNUSED COLUMN test_column |
9 changes: 9 additions & 0 deletions
9
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/mergeColumns.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 TABLE LIQUIBASE.full_name_table (first_name VARCHAR2(50), last_name VARCHAR2(50)) | ||
INSERT INTO LIQUIBASE.full_name_table (first_name) VALUES ('John') | ||
UPDATE LIQUIBASE.full_name_table SET last_name = 'Doe' WHERE first_name='John' | ||
INSERT INTO LIQUIBASE.full_name_table (first_name) VALUES ('Jane') | ||
UPDATE LIQUIBASE.full_name_table SET last_name = 'Doe' WHERE first_name='Jane' | ||
ALTER TABLE LIQUIBASE.full_name_table ADD full_name VARCHAR2(255) | ||
UPDATE LIQUIBASE.full_name_table SET full_name = first_name || ' ' || last_name | ||
ALTER TABLE LIQUIBASE.full_name_table DROP COLUMN first_name | ||
ALTER TABLE LIQUIBASE.full_name_table DROP COLUMN last_name |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/modifyDataType.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 LIQUIBASE.modify_data_type_test (intColumn INTEGER, dateColumn date) | ||
ALTER TABLE LIQUIBASE.modify_data_type_test MODIFY intColumn VARCHAR2(50) |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/modifySql.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 @@ | ||
/* prepend comment */ CREATE TABLE LIQUIBASE.test_table (test_id INTEGER NOT NULL, test_column VARCHAR2(50) NOT NULL) -- append comment |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/renameColumn.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 LIQUIBASE.authors RENAME COLUMN first_name TO first_name_renameColumn_test |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE SEQUENCE LIQUIBASE.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 | ||
RENAME test_sequence TO test_sequence_rename_test |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE TABLE LIQUIBASE.oldnametable (test_id INTEGER NOT NULL, test_column VARCHAR2(50) NOT NULL, CONSTRAINT PK_OLDNAMETABLE PRIMARY KEY (test_id)) | ||
ALTER TABLE LIQUIBASE.oldnametable RENAME TO newnametable |
3 changes: 3 additions & 0 deletions
3
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/renameTrigger.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 TRIGGER test_trigger BEFORE INSERT ON posts BEGIN END | ||
/ | ||
ALTER TRIGGER LIQUIBASE.test_trigger RENAME TO test_trigger_renamed |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/renameView.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 VIEW LIQUIBASE.test_view AS select id, first_name, last_name, email from authors | ||
RENAME test_view TO test_view_new |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/setColumnRemarks.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 @@ | ||
COMMENT ON COLUMN LIQUIBASE.authors.id IS 'A Test Column Remark' |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/setTableRemarks.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 @@ | ||
COMMENT ON TABLE LIQUIBASE.authors IS 'A Test Remark' |
4 changes: 4 additions & 0 deletions
4
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/sql.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,4 @@ | ||
CREATE TABLE LIQUIBASE.sqltest (id INTEGER) | ||
insert into sqltest (id) values (1) | ||
insert into sqltest (id) values (2) | ||
insert into sqltest (id) values (3) |
4 changes: 4 additions & 0 deletions
4
src/main/resources/liquibase/harness/change/expectedSql/oracle/23.0.0/sqlFile.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,4 @@ | ||
CREATE TABLE LIQUIBASE.sqltest (id INTEGER) | ||
insert into sqltest (id) values (1) | ||
insert into sqltest (id) values (2) | ||
insert into sqltest (id) values (3) |
2 changes: 2 additions & 0 deletions
2
src/main/resources/liquibase/harness/data/expectedSql/oracle/23.0.0/delete.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 @@ | ||
INSERT INTO LIQUIBASE.posts (id, author_id, title, description, content, inserted_date) VALUES ('100', '10', 'value', 'value', 'value', '10-AUG-88') | ||
DELETE FROM LIQUIBASE.posts WHERE id=100 |
1 change: 1 addition & 0 deletions
1
src/main/resources/liquibase/harness/data/expectedSql/oracle/23.0.0/insert.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 @@ | ||
INSERT INTO LIQUIBASE.posts (id, author_id, title, description, content, inserted_date) VALUES ('10', '10', 'value', 'value', 'value', '10-AUG-88') |
Oops, something went wrong.