Add Reverse Engineered and Modified SQL tests for Unique Constraints. Fixes #4628

pull/26/head
Akshay Joshi 2019-09-20 12:12:01 +05:30
parent a1b0139c9b
commit faa6236580
48 changed files with 522 additions and 76 deletions

View File

@ -11,6 +11,7 @@ notes for it.
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
release_notes_4_14
release_notes_4_13 release_notes_4_13
release_notes_4_12 release_notes_4_12
release_notes_4_11 release_notes_4_11

View File

@ -0,0 +1,18 @@
************
Version 4.14
************
Release date: 2019-10-17
This release contains a number of bug fixes and new features since the release of pgAdmin4 4.13.
New features
************
Housekeeping
************
| `Issue #4628 <https://redmine.postgresql.org/issues/4628>`_ - Add Reverse Engineered and Modified SQL tests for Unique Constraints.
Bug fixes
*********

View File

@ -1,13 +1,13 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/#a -- Constraint: Pk_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1)
INCLUDE (col2) INCLUDE (col2)
WITH (FILLFACTOR=90) WITH (FILLFACTOR=90)
DEFERRABLE INITIALLY DEFERRED; DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -1,6 +1,6 @@
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
RENAME CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" TO "Pk_$%{}[]()&*^!@""'`\/#a"; RENAME CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" TO "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER INDEX testschema."Pk_$%{}[]()&*^!@""'`\/#a" ALTER INDEX testschema."Pk_$%{}[]()&*^!@""'`\/#a"
SET (FILLFACTOR=90); SET (FILLFACTOR=90);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -1,11 +1,11 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/#a -- Constraint: Pk_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1)
WITH (FILLFACTOR=90); WITH (FILLFACTOR=90);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -1,6 +1,6 @@
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
RENAME CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" TO "Pk_$%{}[]()&*^!@""'`\/#a"; RENAME CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" TO "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER INDEX testschema."Pk_$%{}[]()&*^!@""'`\/#a" ALTER INDEX testschema."Pk_$%{}[]()&*^!@""'`\/#a"
SET (FILLFACTOR=90); SET (FILLFACTOR=90);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -1,12 +1,12 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/#a -- Constraint: Pk_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1)
INCLUDE (col2) INCLUDE (col2)
DEFERRABLE INITIALLY DEFERRED; DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -0,0 +1,12 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" UNIQUE (col1)
INCLUDE (col2)
WITH (FILLFACTOR=90)
DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,6 @@
ALTER TABLE testschema.tablefor_unique_cons
RENAME CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" TO "UC_$%{}[]()&*^!@""'`\/#a";
ALTER INDEX testschema."UC_$%{}[]()&*^!@""'`\/#a"
SET (FILLFACTOR=90);
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,11 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" UNIQUE (col1)
WITH (FILLFACTOR=90);
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,6 @@
ALTER TABLE testschema.tablefor_unique_cons
RENAME CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" TO "UC_$%{}[]()&*^!@""'`\/#a";
ALTER INDEX testschema."UC_$%{}[]()&*^!@""'`\/#a"
SET (FILLFACTOR=90);
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,12 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" UNIQUE (col1)
INCLUDE (col2)
DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,2 @@
ALTER INDEX testschema."UC_$%{}[]()&*^!@""'`\/#a"
RESET (FILLFACTOR);

View File

@ -1,6 +0,0 @@
ALTER TABLE testschema.tableforindexcon
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1)
WITH (FILLFACTOR=20);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tableforindexcon
IS 'Comment for create';

View File

@ -1,12 +1,12 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/# -- Constraint: Pk_$%{}[]()&*^!@"'`\/#
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1)
INCLUDE (col2) INCLUDE (col2)
WITH (FILLFACTOR=20) WITH (FILLFACTOR=20)
DEFERRABLE INITIALLY DEFERRED; DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_primary_key_cons
IS 'Comment for create'; IS 'Comment for create';

View File

@ -1,8 +1,8 @@
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1)
INCLUDE (col2) INCLUDE (col2)
WITH (FILLFACTOR=20) WITH (FILLFACTOR=20)
DEFERRABLE INITIALLY DEFERRED; DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_primary_key_cons
IS 'Comment for create'; IS 'Comment for create';

View File

@ -1,10 +1,10 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/# -- Constraint: Pk_$%{}[]()&*^!@"'`\/#
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1)
WITH (FILLFACTOR=20); WITH (FILLFACTOR=20);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_primary_key_cons
IS 'Comment for create'; IS 'Comment for create';

View File

@ -0,0 +1,5 @@
ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY USING INDEX uindex;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_primary_key_cons
IS 'Comment for create';

View File

@ -0,0 +1,12 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" UNIQUE (col1)
INCLUDE (col2)
WITH (FILLFACTOR=20)
DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_unique_cons
IS 'Comment for create';

View File

@ -0,0 +1,8 @@
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" UNIQUE (col1)
INCLUDE (col2)
WITH (FILLFACTOR=20)
DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_unique_cons
IS 'Comment for create';

View File

@ -0,0 +1,10 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" UNIQUE (col1)
WITH (FILLFACTOR=20);
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_unique_cons
IS 'Comment for create';

View File

@ -0,0 +1,5 @@
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" UNIQUE USING INDEX uindex;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_unique_cons
IS 'Comment for create';

View File

@ -6,7 +6,7 @@
"endpoint": "NODE-table.obj", "endpoint": "NODE-table.obj",
"sql_endpoint": "NODE-table.sql_id", "sql_endpoint": "NODE-table.sql_id",
"data": { "data": {
"name": "tableforindexcon", "name": "tablefor_primary_key_cons",
"columns": [{ "columns": [{
"name": "col1", "name": "col1",
"cltype": "integer", "cltype": "integer",
@ -44,6 +44,7 @@
"name": "Create Primary Key Constraint -- 11 Plus", "name": "Create Primary Key Constraint -- 11 Plus",
"endpoint": "NODE-primary_key.obj", "endpoint": "NODE-primary_key.obj",
"sql_endpoint": "NODE-primary_key.sql_id", "sql_endpoint": "NODE-primary_key.sql_id",
"msql_endpoint": "NODE-primary_key.msql",
"data": { "data": {
"name": "Pk_$%{}[]()&*^!@\"'`\\/#", "name": "Pk_$%{}[]()&*^!@\"'`\\/#",
"comment": "Comment for create", "comment": "Comment for create",
@ -53,8 +54,8 @@
"condeferrable": true, "condeferrable": true,
"condeferred": true "condeferred": true
}, },
"expected_sql_file": "create_index_constraint.sql", "expected_sql_file": "create_pkey_constraint.sql",
"expected_msql_file": "create_msql_index_constraint.sql" "expected_msql_file": "create_pkey_constraint_msql.sql"
}, { }, {
"type": "alter", "type": "alter",
"name": "Alter Primary Key Constraint -- 11 Plus", "name": "Alter Primary Key Constraint -- 11 Plus",
@ -66,8 +67,8 @@
"fillfactor": 90, "fillfactor": 90,
"comment": "Comment for alter" "comment": "Comment for alter"
}, },
"expected_sql_file": "alter_index_constraint.sql", "expected_sql_file": "alter_pkey_constraint.sql",
"expected_msql_file": "alter_msql_index_constraint.sql" "expected_msql_file": "alter_pkey_constraint_msql.sql"
}, { }, {
"type": "alter", "type": "alter",
"name": "Alter Primary Key Constraint Reset Fill factor", "name": "Alter Primary Key Constraint Reset Fill factor",
@ -77,8 +78,8 @@
"data": { "data": {
"fillfactor": "" "fillfactor": ""
}, },
"expected_sql_file": "alter_reset_fillfactor.sql", "expected_sql_file": "alter_pkey_reset_fillfactor.sql",
"expected_msql_file": "alter_msql_reset_fillfactor.sql" "expected_msql_file": "alter_pkey_reset_fillfactor_msql.sql"
}, { }, {
"type": "delete", "type": "delete",
"name": "Drop Primary Key Constraint -- 11 plus", "name": "Drop Primary Key Constraint -- 11 plus",
@ -91,12 +92,14 @@
"name": "Create Primary Key Constraint with Index -- 11 plus", "name": "Create Primary Key Constraint with Index -- 11 plus",
"endpoint": "NODE-primary_key.obj", "endpoint": "NODE-primary_key.obj",
"sql_endpoint": "NODE-primary_key.sql_id", "sql_endpoint": "NODE-primary_key.sql_id",
"msql_endpoint": "NODE-primary_key.msql",
"data": { "data": {
"name": "Pk_$%{}[]()&*^!@\"'`\\/#", "name": "Pk_$%{}[]()&*^!@\"'`\\/#",
"comment": "Comment for create", "comment": "Comment for create",
"index": "uindex" "index": "uindex"
}, },
"expected_sql_file": "create_index_constraint_with_index.sql" "expected_sql_file": "create_pkey_constraint_with_index.sql",
"expected_msql_file": "create_pkey_constraint_with_index_msql.sql"
}, { }, {
"type": "alter", "type": "alter",
"name": "Alter Primary Key Constraint with Index -- 11 plus", "name": "Alter Primary Key Constraint with Index -- 11 plus",
@ -108,8 +111,8 @@
"fillfactor": 90, "fillfactor": 90,
"comment": "Comment for alter" "comment": "Comment for alter"
}, },
"expected_sql_file": "alter_index_constraint_with_index.sql", "expected_sql_file": "alter_pkey_constraint_with_index.sql",
"expected_msql_file": "alter_msql_index_constraint_with_index.sql" "expected_msql_file": "alter_pkey_constraint_with_index_msql.sql"
}, { }, {
"type": "delete", "type": "delete",
"name": "Drop Primary Key Constraint with Index -- 11 plus", "name": "Drop Primary Key Constraint with Index -- 11 plus",
@ -122,7 +125,7 @@
"name": "Drop Index Constraint Table -- 11 plus", "name": "Drop Index Constraint Table -- 11 plus",
"endpoint": "NODE-table.delete_id", "endpoint": "NODE-table.delete_id",
"data": { "data": {
"name": "tableforindexcon" "name": "tablefor_primary_key_cons"
} }
} }
] ]

View File

@ -0,0 +1,132 @@
{
"scenarios": [
{
"type": "create",
"name": "Create Table",
"endpoint": "NODE-table.obj",
"sql_endpoint": "NODE-table.sql_id",
"data": {
"name": "tablefor_unique_cons",
"columns": [{
"name": "col1",
"cltype": "integer",
"is_primary_key": false
}, {
"name": "col2",
"cltype": "integer",
"is_primary_key": false
}],
"is_partitioned": false,
"schema": "testschema",
"spcname": "pg_default"
},
"store_object_id": true
}, {
"type": "create",
"name": "Create Index",
"endpoint": "NODE-index.obj",
"sql_endpoint": "NODE-index.sql_id",
"data": {
"name": "uindex",
"spcname": "pg_default",
"amname": "btree",
"columns": [{
"colname": "col1",
"sort_order": false,
"nulls": false,
"is_sort_nulls_applicable": true
}],
"indisunique": true,
"fillfactor": 20
}
}, {
"type": "create",
"name": "Create Unique Constraint -- 11 Plus",
"endpoint": "NODE-unique_constraint.obj",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#",
"comment": "Comment for create",
"fillfactor": 20,
"columns": [{"column":"col1"}],
"include": ["col2"],
"condeferrable": true,
"condeferred": true
},
"expected_sql_file": "create_unique_constraint.sql",
"expected_msql_file": "create_unique_constraint_msql.sql"
}, {
"type": "alter",
"name": "Alter Unique Constraint -- 11 Plus",
"endpoint": "NODE-unique_constraint.obj_id",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql_id",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#a",
"fillfactor": 90,
"comment": "Comment for alter"
},
"expected_sql_file": "alter_unique_constraint.sql",
"expected_msql_file": "alter_unique_constraint_msql.sql"
}, {
"type": "alter",
"name": "Alter Unique Constraint Reset Fill factor",
"endpoint": "NODE-unique_constraint.obj_id",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql_id",
"data": {
"fillfactor": ""
},
"expected_sql_file": "alter_unique_reset_fillfactor.sql",
"expected_msql_file": "alter_unique_reset_fillfactor_msql.sql"
}, {
"type": "delete",
"name": "Drop Unique Constraint -- 11 Plus",
"endpoint": "NODE-unique_constraint.delete_id",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#a"
}
}, {
"type": "create",
"name": "Create Unique Constraint with Index -- 11 Plus",
"endpoint": "NODE-unique_constraint.obj",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#",
"comment": "Comment for create",
"index": "uindex"
},
"expected_sql_file": "create_unique_constraint_with_index.sql",
"expected_msql_file": "create_unique_constraint_with_index_msql.sql"
}, {
"type": "alter",
"name": "Alter Unique Constraint with Index -- 11 Plus",
"endpoint": "NODE-unique_constraint.obj_id",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql_id",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#a",
"fillfactor": 90,
"comment": "Comment for alter"
},
"expected_sql_file": "alter_unique_constraint_with_index.sql",
"expected_msql_file": "alter_unique_constraint_with_index_msql.sql"
}, {
"type": "delete",
"name": "Drop Unique Constraint -- 11 Plus",
"endpoint": "NODE-unique_constraint.delete_id",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#a"
}
}, {
"type": "delete",
"name": "Drop Unique Constraint Table -- 11 Plus",
"endpoint": "NODE-table.delete_id",
"data": {
"name": "tablefor_unique_cons"
}
}
]
}

View File

@ -1,12 +1,12 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/#a -- Constraint: Pk_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1)
WITH (FILLFACTOR=90) WITH (FILLFACTOR=90)
DEFERRABLE INITIALLY DEFERRED; DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -1,6 +1,6 @@
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
RENAME CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" TO "Pk_$%{}[]()&*^!@""'`\/#a"; RENAME CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" TO "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER INDEX testschema."Pk_$%{}[]()&*^!@""'`\/#a" ALTER INDEX testschema."Pk_$%{}[]()&*^!@""'`\/#a"
SET (FILLFACTOR=90); SET (FILLFACTOR=90);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -1,11 +1,11 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/#a -- Constraint: Pk_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1)
WITH (FILLFACTOR=90); WITH (FILLFACTOR=90);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -1,6 +1,6 @@
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
RENAME CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" TO "Pk_$%{}[]()&*^!@""'`\/#a"; RENAME CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" TO "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER INDEX testschema."Pk_$%{}[]()&*^!@""'`\/#a" ALTER INDEX testschema."Pk_$%{}[]()&*^!@""'`\/#a"
SET (FILLFACTOR=90); SET (FILLFACTOR=90);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -1,11 +1,11 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/#a -- Constraint: Pk_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" PRIMARY KEY (col1)
DEFERRABLE INITIALLY DEFERRED; DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_primary_key_cons
IS 'Comment for alter'; IS 'Comment for alter';

View File

@ -0,0 +1,11 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" UNIQUE (col1)
WITH (FILLFACTOR=90)
DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,6 @@
ALTER TABLE testschema.tablefor_unique_cons
RENAME CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" TO "UC_$%{}[]()&*^!@""'`\/#a";
ALTER INDEX testschema."UC_$%{}[]()&*^!@""'`\/#a"
SET (FILLFACTOR=90);
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,11 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" UNIQUE (col1)
WITH (FILLFACTOR=90);
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,6 @@
ALTER TABLE testschema.tablefor_unique_cons
RENAME CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" TO "UC_$%{}[]()&*^!@""'`\/#a";
ALTER INDEX testschema."UC_$%{}[]()&*^!@""'`\/#a"
SET (FILLFACTOR=90);
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,11 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#a
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" UNIQUE (col1)
DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#a" ON testschema.tablefor_unique_cons
IS 'Comment for alter';

View File

@ -0,0 +1,2 @@
ALTER INDEX testschema."UC_$%{}[]()&*^!@""'`\/#a"
RESET (FILLFACTOR);

View File

@ -1,6 +0,0 @@
ALTER TABLE testschema.tableforindexcon
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1)
WITH (FILLFACTOR=20);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tableforindexcon
IS 'Comment for create';

View File

@ -1,11 +1,11 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/# -- Constraint: Pk_$%{}[]()&*^!@"'`\/#
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1)
WITH (FILLFACTOR=20) WITH (FILLFACTOR=20)
DEFERRABLE INITIALLY DEFERRED; DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_primary_key_cons
IS 'Comment for create'; IS 'Comment for create';

View File

@ -1,7 +1,7 @@
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1)
WITH (FILLFACTOR=20) WITH (FILLFACTOR=20)
DEFERRABLE INITIALLY DEFERRED; DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_primary_key_cons
IS 'Comment for create'; IS 'Comment for create';

View File

@ -1,10 +1,10 @@
-- Constraint: Pk_$%{}[]()&*^!@"'`\/# -- Constraint: Pk_$%{}[]()&*^!@"'`\/#
-- ALTER TABLE testschema.tableforindexcon DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#"; -- ALTER TABLE testschema.tablefor_primary_key_cons DROP CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#";
ALTER TABLE testschema.tableforindexcon ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1) ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY (col1)
WITH (FILLFACTOR=20); WITH (FILLFACTOR=20);
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tableforindexcon COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_primary_key_cons
IS 'Comment for create'; IS 'Comment for create';

View File

@ -0,0 +1,5 @@
ALTER TABLE testschema.tablefor_primary_key_cons
ADD CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" PRIMARY KEY USING INDEX uindex;
COMMENT ON CONSTRAINT "Pk_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_primary_key_cons
IS 'Comment for create';

View File

@ -0,0 +1,11 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" UNIQUE (col1)
WITH (FILLFACTOR=20)
DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_unique_cons
IS 'Comment for create';

View File

@ -0,0 +1,7 @@
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" UNIQUE (col1)
WITH (FILLFACTOR=20)
DEFERRABLE INITIALLY DEFERRED;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_unique_cons
IS 'Comment for create';

View File

@ -0,0 +1,10 @@
-- Constraint: UC_$%{}[]()&*^!@"'`\/#
-- ALTER TABLE testschema.tablefor_unique_cons DROP CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#";
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" UNIQUE (col1)
WITH (FILLFACTOR=20);
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_unique_cons
IS 'Comment for create';

View File

@ -0,0 +1,5 @@
ALTER TABLE testschema.tablefor_unique_cons
ADD CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" UNIQUE USING INDEX uindex;
COMMENT ON CONSTRAINT "UC_$%{}[]()&*^!@""'`\/#" ON testschema.tablefor_unique_cons
IS 'Comment for create';

View File

@ -6,7 +6,7 @@
"endpoint": "NODE-table.obj", "endpoint": "NODE-table.obj",
"sql_endpoint": "NODE-table.sql_id", "sql_endpoint": "NODE-table.sql_id",
"data": { "data": {
"name": "tableforindexcon", "name": "tablefor_primary_key_cons",
"columns": [{ "columns": [{
"name": "col1", "name": "col1",
"cltype": "integer", "cltype": "integer",
@ -40,6 +40,7 @@
"name": "Create Primary Key Constraint", "name": "Create Primary Key Constraint",
"endpoint": "NODE-primary_key.obj", "endpoint": "NODE-primary_key.obj",
"sql_endpoint": "NODE-primary_key.sql_id", "sql_endpoint": "NODE-primary_key.sql_id",
"msql_endpoint": "NODE-primary_key.msql",
"data": { "data": {
"name": "Pk_$%{}[]()&*^!@\"'`\\/#", "name": "Pk_$%{}[]()&*^!@\"'`\\/#",
"comment": "Comment for create", "comment": "Comment for create",
@ -48,8 +49,8 @@
"condeferrable": true, "condeferrable": true,
"condeferred": true "condeferred": true
}, },
"expected_sql_file": "create_index_constraint.sql", "expected_sql_file": "create_pkey_constraint.sql",
"expected_msql_file": "create_msql_index_constraint.sql" "expected_msql_file": "create_pkey_constraint_msql.sql"
}, { }, {
"type": "alter", "type": "alter",
"name": "Alter Primary Key Constraint", "name": "Alter Primary Key Constraint",
@ -61,8 +62,8 @@
"fillfactor": 90, "fillfactor": 90,
"comment": "Comment for alter" "comment": "Comment for alter"
}, },
"expected_sql_file": "alter_index_constraint.sql", "expected_sql_file": "alter_pkey_constraint.sql",
"expected_msql_file": "alter_msql_index_constraint.sql" "expected_msql_file": "alter_pkey_constraint_msql.sql"
}, { }, {
"type": "alter", "type": "alter",
"name": "Alter Primary Key Constraint Reset Fill factor", "name": "Alter Primary Key Constraint Reset Fill factor",
@ -72,8 +73,8 @@
"data": { "data": {
"fillfactor": "" "fillfactor": ""
}, },
"expected_sql_file": "alter_reset_fillfactor.sql", "expected_sql_file": "alter_pkey_reset_fillfactor.sql",
"expected_msql_file": "alter_msql_reset_fillfactor.sql" "expected_msql_file": "alter_pkey_reset_fillfactor_msql.sql"
}, { }, {
"type": "delete", "type": "delete",
"name": "Drop Primary Key Constraint", "name": "Drop Primary Key Constraint",
@ -86,12 +87,14 @@
"name": "Create Primary Key Constraint with Index", "name": "Create Primary Key Constraint with Index",
"endpoint": "NODE-primary_key.obj", "endpoint": "NODE-primary_key.obj",
"sql_endpoint": "NODE-primary_key.sql_id", "sql_endpoint": "NODE-primary_key.sql_id",
"msql_endpoint": "NODE-primary_key.msql",
"data": { "data": {
"name": "Pk_$%{}[]()&*^!@\"'`\\/#", "name": "Pk_$%{}[]()&*^!@\"'`\\/#",
"comment": "Comment for create", "comment": "Comment for create",
"index": "uindex" "index": "uindex"
}, },
"expected_sql_file": "create_index_constraint_with_index.sql" "expected_sql_file": "create_pkey_constraint_with_index.sql",
"expected_msql_file": "create_pkey_constraint_with_index_msql.sql"
}, { }, {
"type": "alter", "type": "alter",
"name": "Alter Primary Key Constraint with Index", "name": "Alter Primary Key Constraint with Index",
@ -103,8 +106,8 @@
"fillfactor": 90, "fillfactor": 90,
"comment": "Comment for alter" "comment": "Comment for alter"
}, },
"expected_sql_file": "alter_index_constraint_with_index.sql", "expected_sql_file": "alter_pkey_constraint_with_index.sql",
"expected_msql_file": "alter_msql_index_constraint_with_index.sql" "expected_msql_file": "alter_pkey_constraint_with_index_msql.sql"
}, { }, {
"type": "delete", "type": "delete",
"name": "Drop Primary Key Constraint with Index", "name": "Drop Primary Key Constraint with Index",
@ -117,7 +120,7 @@
"name": "Drop Index Constraint Table", "name": "Drop Index Constraint Table",
"endpoint": "NODE-table.delete_id", "endpoint": "NODE-table.delete_id",
"data": { "data": {
"name": "tableforindexcon" "name": "tablefor_primary_key_cons"
} }
} }
] ]

View File

@ -0,0 +1,127 @@
{
"scenarios": [
{
"type": "create",
"name": "Create Table",
"endpoint": "NODE-table.obj",
"sql_endpoint": "NODE-table.sql_id",
"data": {
"name": "tablefor_unique_cons",
"columns": [{
"name": "col1",
"cltype": "integer",
"is_primary_key": false
}],
"is_partitioned": false,
"schema": "testschema",
"spcname": "pg_default"
},
"store_object_id": true
}, {
"type": "create",
"name": "Create Index",
"endpoint": "NODE-index.obj",
"sql_endpoint": "NODE-index.sql_id",
"data": {
"name": "uindex",
"spcname": "pg_default",
"amname": "btree",
"columns": [{
"colname": "col1",
"sort_order": false,
"nulls": false,
"is_sort_nulls_applicable": true
}],
"indisunique": true,
"fillfactor": 20
}
}, {
"type": "create",
"name": "Create Unique Constraint",
"endpoint": "NODE-unique_constraint.obj",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#",
"comment": "Comment for create",
"fillfactor": 20,
"columns": [{"column":"col1"}],
"condeferrable": true,
"condeferred": true
},
"expected_sql_file": "create_unique_constraint.sql",
"expected_msql_file": "create_unique_constraint_msql.sql"
}, {
"type": "alter",
"name": "Alter Unique Constraint",
"endpoint": "NODE-unique_constraint.obj_id",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql_id",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#a",
"fillfactor": 90,
"comment": "Comment for alter"
},
"expected_sql_file": "alter_unique_constraint.sql",
"expected_msql_file": "alter_unique_constraint_msql.sql"
}, {
"type": "alter",
"name": "Alter Unique Constraint Reset Fill factor",
"endpoint": "NODE-unique_constraint.obj_id",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql_id",
"data": {
"fillfactor": ""
},
"expected_sql_file": "alter_unique_reset_fillfactor.sql",
"expected_msql_file": "alter_unique_reset_fillfactor_msql.sql"
}, {
"type": "delete",
"name": "Drop Unique Constraint",
"endpoint": "NODE-unique_constraint.delete_id",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#a"
}
}, {
"type": "create",
"name": "Create Unique Constraint with Index",
"endpoint": "NODE-unique_constraint.obj",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#",
"comment": "Comment for create",
"index": "uindex"
},
"expected_sql_file": "create_unique_constraint_with_index.sql",
"expected_msql_file": "create_unique_constraint_with_index_msql.sql"
}, {
"type": "alter",
"name": "Alter Unique Constraint with Index",
"endpoint": "NODE-unique_constraint.obj_id",
"sql_endpoint": "NODE-unique_constraint.sql_id",
"msql_endpoint": "NODE-unique_constraint.msql_id",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#a",
"fillfactor": 90,
"comment": "Comment for alter"
},
"expected_sql_file": "alter_unique_constraint_with_index.sql",
"expected_msql_file": "alter_unique_constraint_with_index_msql.sql"
}, {
"type": "delete",
"name": "Drop Unique Constraint",
"endpoint": "NODE-unique_constraint.delete_id",
"data": {
"name": "UC_$%{}[]()&*^!@\"'`\\/#a"
}
}, {
"type": "delete",
"name": "Drop Unique Constraint Table",
"endpoint": "NODE-table.delete_id",
"data": {
"name": "tablefor_unique_cons"
}
}
]
}