Added appropriate 'IF EXISTS', 'CASCADE', 'IF NOT EXISTS' clause for the remaining nodes.

refs #5741
This commit is contained in:
Nikhil Mohite 2021-09-28 16:05:46 +05:30 committed by Akshay Joshi
parent 31c7f3eaba
commit c4db223a64
124 changed files with 136 additions and 133 deletions

View File

@ -840,7 +840,7 @@ class ForeignDataWrapperView(PGChildNodeView, SchemaDiffObjectCompare):
sql_header = """-- Foreign Data Wrapper: {0}\n\n""".format(
res['rows'][0]['name'])
sql_header += """-- DROP FOREIGN DATA WRAPPER {0}
sql_header += """-- DROP FOREIGN DATA WRAPPER IF EXISTS {0}
""".format(self.qtIdent(self.conn, res['rows'][0]['name']))

View File

@ -848,7 +848,7 @@ class ForeignServerView(PGChildNodeView, SchemaDiffObjectCompare):
sql_header = """-- Foreign Server: {0}
-- DROP SERVER {0}
-- DROP SERVER IF EXISTS {0}
""".format(res['rows'][0]['name'])

View File

@ -1,6 +1,6 @@
-- Foreign Server: FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER IF EXISTS FS_$%{}[]()&*^!@"'`\/#
CREATE SERVER "FS_$%{}[]()&*^!@""'`\/#"
VERSION '1.1'

View File

@ -1,6 +1,6 @@
-- Foreign Server: FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER IF EXISTS FS_$%{}[]()&*^!@"'`\/#
CREATE SERVER "FS_$%{}[]()&*^!@""'`\/#"
VERSION '1.1'

View File

@ -1,6 +1,6 @@
-- Foreign Server: FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER IF EXISTS FS_$%{}[]()&*^!@"'`\/#
CREATE SERVER "FS_$%{}[]()&*^!@""'`\/#"
VERSION '1.1'

View File

@ -1,6 +1,6 @@
-- Foreign Server: FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER IF EXISTS FS_$%{}[]()&*^!@"'`\/#
CREATE SERVER "FS_$%{}[]()&*^!@""'`\/#"
TYPE 'oracle'

View File

@ -1,6 +1,6 @@
-- Foreign Server: FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER IF EXISTS FS_$%{}[]()&*^!@"'`\/#
CREATE SERVER "FS_$%{}[]()&*^!@""'`\/#"
VERSION '1.1'

View File

@ -1,6 +1,6 @@
-- Foreign Server: FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER IF EXISTS FS_$%{}[]()&*^!@"'`\/#
CREATE SERVER "FS_$%{}[]()&*^!@""'`\/#"
VERSION '1.1'

View File

@ -1,6 +1,6 @@
-- Foreign Server: FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER IF EXISTS FS_$%{}[]()&*^!@"'`\/#
CREATE SERVER "FS_$%{}[]()&*^!@""'`\/#"
VERSION '1.1'

View File

@ -1,6 +1,6 @@
-- Foreign Server: FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER FS_$%{}[]()&*^!@"'`\/#
-- DROP SERVER IF EXISTS FS_$%{}[]()&*^!@"'`\/#
CREATE SERVER "FS_$%{}[]()&*^!@""'`\/#"
TYPE 'oracle'

View File

@ -839,7 +839,7 @@ class UserMappingView(PGChildNodeView, SchemaDiffObjectCompare):
sql_header = """-- User Mapping : {0}
-- DROP USER MAPPING FOR {0} SERVER {1}
-- DROP USER MAPPING IF EXISTS FOR {0} SERVER {1}
""".format(res['rows'][0]['name'], fdw_data['name'])

View File

@ -3,4 +3,4 @@
CREATE USER MAPPING FOR {% if data.name == "CURRENT_USER" or data.name == "PUBLIC" %}{{ data.name }}{% else %}{{ conn|qtIdent(data.name) }}{% endif %} SERVER {{ conn|qtIdent(fdwdata.name) }}{%endif%}{% if data.umoptions %}{% if is_valid_options %}
OPTIONS ({% for variable in data.umoptions %}{% if loop.index != 1 %}, {% endif %}
{{ conn|qtIdent(variable.umoption) }} {{ variable.umvalue|qtLiteral }}{% endfor %}){% endif %}{% endif %};
{{ conn|qtIdent(variable.umoption) }} {{ variable.umvalue|qtLiteral }}{% endfor %}){% endif %}{% endif %};

View File

@ -1,6 +1,6 @@
-- User Mapping : postgres
-- DROP USER MAPPING FOR postgres SERVER test_fs_for_user_mapping
-- DROP USER MAPPING IF EXISTS FOR postgres SERVER test_fs_for_user_mapping
CREATE USER MAPPING FOR postgres SERVER test_fs_for_user_mapping
OPTIONS ("user" 'test_user12', password 'secret123');

View File

@ -1,5 +1,5 @@
-- User Mapping : postgres
-- DROP USER MAPPING FOR postgres SERVER test_fs_for_user_mapping
-- DROP USER MAPPING IF EXISTS FOR postgres SERVER test_fs_for_user_mapping
CREATE USER MAPPING FOR postgres SERVER test_fs_for_user_mapping;

View File

@ -1,6 +1,6 @@
-- User Mapping : postgres
-- DROP USER MAPPING FOR postgres SERVER test_fs_for_user_mapping
-- DROP USER MAPPING IF EXISTS FOR postgres SERVER test_fs_for_user_mapping
CREATE USER MAPPING FOR postgres SERVER test_fs_for_user_mapping
OPTIONS ("user" 'test_user', password 'secret');

View File

@ -1,6 +1,6 @@
-- User Mapping : enterprisedb
-- DROP USER MAPPING FOR enterprisedb SERVER test_fs_for_user_mapping
-- DROP USER MAPPING IF EXISTS FOR enterprisedb SERVER test_fs_for_user_mapping
CREATE USER MAPPING FOR enterprisedb SERVER test_fs_for_user_mapping
OPTIONS ("user" 'test_user12', password 'secret123');

View File

@ -1,5 +1,5 @@
-- User Mapping : enterprisedb
-- DROP USER MAPPING FOR enterprisedb SERVER test_fs_for_user_mapping
-- DROP USER MAPPING IF EXISTS FOR enterprisedb SERVER test_fs_for_user_mapping
CREATE USER MAPPING FOR enterprisedb SERVER test_fs_for_user_mapping;

View File

@ -1,6 +1,6 @@
-- User Mapping : enterprisedb
-- DROP USER MAPPING FOR enterprisedb SERVER test_fs_for_user_mapping
-- DROP USER MAPPING IF EXISTS FOR enterprisedb SERVER test_fs_for_user_mapping
CREATE USER MAPPING FOR enterprisedb SERVER test_fs_for_user_mapping
OPTIONS ("user" 'test_user', password 'secret');

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
OPTIONS (opt1 'val1', opt2 'valopt2');

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#";

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
OPTIONS (opt1 'val1');

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
OPTIONS (opt1 'val1', opt2 'val2');

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw2_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw2_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw2_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw2_$%{}[]()&*^!@""'`\/#"
VALIDATOR pg_catalog.postgresql_fdw_validator

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw2_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw2_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw2_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw2_$%{}[]()&*^!@""'`\/#"
VALIDATOR pg_catalog.postgresql_fdw_validator

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
VALIDATOR pg_catalog.postgresql_fdw_validator

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#";

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
OPTIONS (opt1 'val1', opt2 'valopt2');

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#";

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
OPTIONS (opt1 'val1');

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
OPTIONS (opt1 'val1', opt2 'val2');

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw2_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw2_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw2_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw2_$%{}[]()&*^!@""'`\/#"
VALIDATOR pg_catalog.postgresql_fdw_validator

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw2_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw2_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw2_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw2_$%{}[]()&*^!@""'`\/#"
VALIDATOR pg_catalog.postgresql_fdw_validator

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
VALIDATOR pg_catalog.postgresql_fdw_validator

View File

@ -1,6 +1,6 @@
-- Foreign Data Wrapper: Fdw1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#"
-- DROP FOREIGN DATA WRAPPER IF EXISTS "Fdw1_$%{}[]()&*^!@""'`\/#"
CREATE FOREIGN DATA WRAPPER "Fdw1_$%{}[]()&*^!@""'`\/#";

View File

@ -1055,7 +1055,7 @@ It may have been removed by another user.
sql_header = """
-- CATALOG: {0}
-- DROP SCHEMA {0};
-- DROP SCHEMA IF EXISTS {0};
""".format(old_data['name'])

View File

@ -768,7 +768,7 @@ AND relkind != 'c'))"""
sql_header = """-- DOMAIN: {0}.{1}\n\n""".format(
data['basensp'], data['name'])
sql_header += """-- DROP DOMAIN {0};\n
sql_header += """-- DROP DOMAIN IF EXISTS {0};\n
""".format(self.qtIdent(self.conn, data['basensp'], data['name']))
SQL = sql_header + SQL

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom2_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom2_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom2_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom2_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS numeric(5,2)

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom2_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom2_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom2_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom2_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS text

View File

@ -1,6 +1,6 @@
-- DOMAIN: public.Dom1_$%{}[]()&*^!@"'`\/#
-- DROP DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#";
-- DROP DOMAIN IF EXISTS public."Dom1_$%{}[]()&*^!@""'`\/#";
CREATE DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#"
AS numeric(5,2)

View File

@ -911,7 +911,7 @@ class ForeignTableView(PGChildNodeView, DataTypeReader,
sql_header = """-- FOREIGN TABLE: {0}.{1}\n\n""".format(
data['basensp'], data['name'])
sql_header += """-- DROP FOREIGN TABLE {0};
sql_header += """-- DROP FOREIGN TABLE IF EXISTS {0};
""".format(self.qtIdent(self.conn, data['basensp'], data['name']))

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 integer NULL

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 integer NULL

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 integer NULL

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 integer NULL

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 integer NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 integer NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 integer NULL

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 integer NULL

View File

@ -1,6 +1,6 @@
-- FOREIGN TABLE: public.FT1_$%{}[]()&*^!@"'`\/#
-- DROP FOREIGN TABLE public."FT1_$%{}[]()&*^!@""'`\/#";
-- DROP FOREIGN TABLE IF EXISTS public."FT1_$%{}[]()&*^!@""'`\/#";
CREATE FOREIGN TABLE IF NOT EXISTS public."FT1_$%{}[]()&*^!@""'`\/#"(
col1 bigint NULL,

View File

@ -1,6 +1,6 @@
-- Text Search Dictionary: test.test_dic
-- DROP TEXT SEARCH DICTIONARY test.test_dic;
-- DROP TEXT SEARCH DICTIONARY IF EXISTS test.test_dic;
CREATE TEXT SEARCH DICTIONARY test.test_dic (
TEMPLATE = simple

View File

@ -860,7 +860,7 @@ class FtsDictionaryView(PGChildNodeView, SchemaDiffObjectCompare):
sql_header = """-- Text Search Dictionary: {0}.{1}\n\n""".format(
res['rows'][0]['schema'], res['rows'][0]['name'])
sql_header += """-- DROP TEXT SEARCH DICTIONARY {0};\n
sql_header += """-- DROP TEXT SEARCH DICTIONARY IF EXISTS {0};\n
""".format(self.qtIdent(self.conn, res['rows'][0]['schema'],
res['rows'][0]['name']))

View File

@ -1,6 +1,6 @@
-- Text Search Dictionary: public.Test Dictionary Edit#1
-- DROP TEXT SEARCH DICTIONARY public."Test Dictionary Edit#1";
-- DROP TEXT SEARCH DICTIONARY IF EXISTS public."Test Dictionary Edit#1";
CREATE TEXT SEARCH DICTIONARY public."Test Dictionary Edit#1" (
TEMPLATE = simple

View File

@ -1,6 +1,6 @@
-- Text Search Dictionary: public.Test Dictionary Edit#1
-- DROP TEXT SEARCH DICTIONARY public."Test Dictionary Edit#1";
-- DROP TEXT SEARCH DICTIONARY IF EXISTS public."Test Dictionary Edit#1";
CREATE TEXT SEARCH DICTIONARY public."Test Dictionary Edit#1" (
TEMPLATE = simple,

View File

@ -1,6 +1,6 @@
-- Text Search Dictionary: public.Dictionary1_$%{}[]()&*^!@"'`\/#
-- DROP TEXT SEARCH DICTIONARY public."Dictionary1_$%{}[]()&*^!@""'`\/#";
-- DROP TEXT SEARCH DICTIONARY IF EXISTS public."Dictionary1_$%{}[]()&*^!@""'`\/#";
CREATE TEXT SEARCH DICTIONARY public."Dictionary1_$%{}[]()&*^!@""'`\/#" (
TEMPLATE = simple

View File

@ -755,7 +755,7 @@ class SequenceView(PGChildNodeView, SchemaDiffObjectCompare):
sql_header = """-- SEQUENCE: {0}.{1}\n\n""".format(
result['schema'], result['name'])
sql_header += """-- DROP SEQUENCE {0};
sql_header += """-- DROP SEQUENCE IF EXISTS {0};
""".format(self.qtIdent(self.conn, result['schema'], result['name']))

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT -7

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT 5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT 5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT 5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT -5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT 5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT 5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT 5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT -7

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT 5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT 5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
INCREMENT 5

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

View File

@ -1,6 +1,6 @@
-- SEQUENCE: public.Seq1_$%{}[]()&*^!@"'`\/#
-- DROP SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#";
-- DROP SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#";
CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
CYCLE

Some files were not shown because too many files have changed in this diff Show More