forked from liquibase/liquibase
-
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.
Updated DerbyDatabase definition to use the set of keywords defined in https://db.apache.org/derby/docs/10.2/ref/rrefkeywords29722.html resolves liquibase#1031
- Loading branch information
Showing
43 changed files
with
196 additions
and
6 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
7 changes: 7 additions & 0 deletions
7
...e/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/addAutoIncrement/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columnName=id | ||
-- Change Parameter: tableName=person | ||
CREATE SEQUENCE IF NOT EXISTS person_id_seq; | ||
ALTER TABLE person ALTER COLUMN id SET NOT NULL; | ||
ALTER TABLE person ALTER COLUMN id SET DEFAULT nextval('person_id_seq'); | ||
ALTER SEQUENCE person_id_seq OWNED BY person.id; |
7 changes: 7 additions & 0 deletions
7
...ed_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/addColumn/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columns=[column:[ | ||
-- name="id" | ||
-- type="int" | ||
-- ], ] | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person ADD id INTEGER; |
7 changes: 7 additions & 0 deletions
7
...reGeneratedSqlWithExpectedSqlForMinimalChangesets/addForeignKeyConstraint/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: baseColumnNames=person_id | ||
-- Change Parameter: baseTableName=address | ||
-- Change Parameter: constraintName=fk_address_person | ||
-- Change Parameter: referencedColumnNames=id | ||
-- Change Parameter: referencedTableName=person | ||
ALTER TABLE address ADD CONSTRAINT fk_address_person FOREIGN KEY (person_id) REFERENCES person (id); |
9 changes: 9 additions & 0 deletions
9
...ate/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/addLookupTable/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: existingColumnName=state | ||
-- Change Parameter: existingTableName=address | ||
-- Change Parameter: newColumnName=abbreviation | ||
-- Change Parameter: newTableName=state | ||
CREATE TABLE state AS SELECT DISTINCT state AS abbreviation FROM address WHERE state IS NOT NULL; | ||
ALTER TABLE state ALTER COLUMN abbreviation SET NOT NULL; | ||
ALTER TABLE state ADD PRIMARY KEY (abbreviation); | ||
ALTER TABLE address ADD CONSTRAINT FK_ADDRESS_STATE FOREIGN KEY (state) REFERENCES state (abbreviation); |
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: 4 additions & 0 deletions
4
...mpareGeneratedSqlWithExpectedSqlForMinimalChangesets/addNotNullConstraint/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columnName=id | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person ALTER COLUMN id SET NOT NULL; |
4 changes: 4 additions & 0 deletions
4
...tate/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/addPrimaryKey/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columnNames=id, name | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person ADD PRIMARY KEY (id, name); |
4 changes: 4 additions & 0 deletions
4
...ompareGeneratedSqlWithExpectedSqlForMinimalChangesets/addUniqueConstraint/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columnNames=id, name | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person ADD UNIQUE (id, name); |
4 changes: 4 additions & 0 deletions
4
...tate/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/alterSequence/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: incrementBy=371717 | ||
-- Change Parameter: sequenceName=seq_id | ||
ALTER SEQUENCE seq_id INCREMENT BY 371717; |
4 changes: 4 additions & 0 deletions
4
...ed_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/alterSequence/mariadb.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 @@ | ||
-- Database: mariadb | ||
-- Change Parameter: incrementBy=371717 | ||
-- Change Parameter: sequenceName=seq_id | ||
ALTER SEQUENCE seq_id INCREMENT BY 371717; |
7 changes: 7 additions & 0 deletions
7
..._state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/createIndex/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columns=[column:[ | ||
-- name="id" | ||
-- type="int" | ||
-- ], ] | ||
-- Change Parameter: tableName=person | ||
CREATE INDEX ON person(id); |
3 changes: 3 additions & 0 deletions
3
...ate/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/createSequence/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: sequenceName=seq_id | ||
CREATE SEQUENCE IF NOT EXISTS seq_id; |
3 changes: 3 additions & 0 deletions
3
...d_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/createSequence/mariadb.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 @@ | ||
-- Database: mariadb | ||
-- Change Parameter: sequenceName=seq_id | ||
CREATE SEQUENCE seq_id; |
7 changes: 7 additions & 0 deletions
7
..._state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/createTable/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columns=[column:[ | ||
-- name="id" | ||
-- type="int" | ||
-- ], ] | ||
-- Change Parameter: tableName=person | ||
CREATE TABLE person (id INTEGER); |
4 changes: 4 additions & 0 deletions
4
...d_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/createView/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: selectQuery=select id, name from person where id > 10 | ||
-- Change Parameter: viewName=v_person | ||
CREATE VIEW v_person AS select id, name from person where id > 10; |
3 changes: 3 additions & 0 deletions
3
...saved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/delete/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: tableName=person | ||
DELETE FROM person; |
4 changes: 4 additions & 0 deletions
4
...d_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropColumn/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columnName=id | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person DROP COLUMN id; |
4 changes: 4 additions & 0 deletions
4
...e/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropDefaultValue/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columnName=id | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person ALTER COLUMN id DROP DEFAULT; |
4 changes: 4 additions & 0 deletions
4
...eGeneratedSqlWithExpectedSqlForMinimalChangesets/dropForeignKeyConstraint/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: baseTableName=person | ||
-- Change Parameter: constraintName=fk_address_person | ||
ALTER TABLE person DROP CONSTRAINT fk_address_person; |
3 changes: 3 additions & 0 deletions
3
...ed_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropIndex/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: indexName=idx_address | ||
DROP INDEX idx_address; |
4 changes: 4 additions & 0 deletions
4
...pareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropNotNullConstraint/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columnName=id | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person ALTER COLUMN id DROP NOT NULL; |
10 changes: 10 additions & 0 deletions
10
...ate/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropPrimaryKey/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: tableName=person | ||
DO $$ DECLARE constraint_name varchar; | ||
BEGIN | ||
SELECT tc.CONSTRAINT_NAME into strict constraint_name | ||
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc | ||
WHERE CONSTRAINT_TYPE = 'PRIMARY KEY' | ||
AND TABLE_NAME = 'person' AND TABLE_SCHEMA = 'null'; | ||
EXECUTE 'alter table null.person drop constraint ' || constraint_name; | ||
END $$;; |
3 changes: 3 additions & 0 deletions
3
...tate/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropProcedure/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: procedureName=new_customer | ||
DROP PROCEDURE new_customer; |
3 changes: 3 additions & 0 deletions
3
...state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropSequence/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: sequenceName=seq_id | ||
DROP SEQUENCE seq_id CASCADE; |
3 changes: 3 additions & 0 deletions
3
...ved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropSequence/mariadb.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 @@ | ||
-- Database: mariadb | ||
-- Change Parameter: sequenceName=seq_id | ||
DROP SEQUENCE seq_id; |
3 changes: 3 additions & 0 deletions
3
...ed_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropTable/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: tableName=person | ||
DROP TABLE person; |
4 changes: 4 additions & 0 deletions
4
...mpareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropUniqueConstraint/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: constraintName=const_name | ||
-- Change Parameter: tableName=person | ||
DROP INDEX const_name CASCADE; |
3 changes: 3 additions & 0 deletions
3
...ved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/dropView/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: viewName=v_person | ||
DROP VIEW v_person; |
1 change: 1 addition & 0 deletions
1
.../saved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/empty/cockroachdb.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 @@ | ||
-- Database: cockroachdb |
7 changes: 7 additions & 0 deletions
7
...saved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/insert/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columns=[column:[ | ||
-- name="id" | ||
-- type="int" | ||
-- ], ] | ||
-- Change Parameter: tableName=person | ||
INSERT INTO person (id) VALUES (NULL); |
10 changes: 10 additions & 0 deletions
10
...state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/mergeColumns/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: column1Name=first_name | ||
-- Change Parameter: column2Name=last_name | ||
-- Change Parameter: finalColumnName=full_name | ||
-- Change Parameter: finalColumnType=varchar(255) | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person ADD full_name VARCHAR(255); | ||
UPDATE person SET full_name = first_name || 'null' || last_name; | ||
ALTER TABLE person DROP COLUMN first_name; | ||
ALTER TABLE person DROP COLUMN last_name; |
5 changes: 5 additions & 0 deletions
5
...ate/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/modifyDataType/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columnName=id | ||
-- Change Parameter: newDataType=int | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person ALTER COLUMN id TYPE INTEGER USING (id::INTEGER); |
5 changes: 5 additions & 0 deletions
5
...state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/renameColumn/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: newColumnName=full_name | ||
-- Change Parameter: oldColumnName=name | ||
-- Change Parameter: tableName=person | ||
ALTER TABLE person RENAME COLUMN name TO full_name; |
4 changes: 4 additions & 0 deletions
4
...ate/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/renameSequence/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: newSequenceName=seq_id | ||
-- Change Parameter: oldSequenceName=seq_id | ||
ALTER SEQUENCE seq_id RENAME TO seq_id; |
4 changes: 4 additions & 0 deletions
4
...d_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/renameSequence/mariadb.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 @@ | ||
-- Database: mariadb | ||
-- Change Parameter: newSequenceName=seq_id | ||
-- Change Parameter: oldSequenceName=seq_id | ||
ALTER SEQUENCE seq_id RENAME TO seq_id; |
4 changes: 4 additions & 0 deletions
4
..._state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/renameTable/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: newTableName=employee | ||
-- Change Parameter: oldTableName=person | ||
ALTER TABLE person RENAME TO employee; |
4 changes: 4 additions & 0 deletions
4
...d_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/renameView/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: newViewName=v_person | ||
-- Change Parameter: oldViewName=v_person | ||
ALTER TABLE v_person RENAME TO v_person; |
5 changes: 5 additions & 0 deletions
5
...e/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/setColumnRemarks/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columnName=id | ||
-- Change Parameter: remarks=A String | ||
-- Change Parameter: tableName=person | ||
COMMENT ON COLUMN person.id IS 'A String'; |
4 changes: 4 additions & 0 deletions
4
...te/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/setTableRemarks/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: remarks=A String | ||
-- Change Parameter: tableName=person | ||
COMMENT ON TABLE person IS 'A String'; |
3 changes: 3 additions & 0 deletions
3
...fy/saved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/sql/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: sql=insert into person (name) values ('Bob') | ||
insert into person (name) values ('Bob'); |
2 changes: 2 additions & 0 deletions
2
...aved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/sqlFile/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: path=my/path/file.sql |
7 changes: 7 additions & 0 deletions
7
...saved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/update/cockroachdb.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 @@ | ||
-- Database: cockroachdb | ||
-- Change Parameter: columns=[column:[ | ||
-- name="id" | ||
-- type="int" | ||
-- ], ] | ||
-- Change Parameter: tableName=person | ||
UPDATE person SET id = NULL; |