mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix an issue where the scripts created by generate script of Schema diff for Table with sequence was not working earlier. #7165
This commit is contained in:
parent
389896411a
commit
e81a036850
@ -14,5 +14,5 @@ CREATE {% if data.relpersistence %}UNLOGGED {% endif %}SEQUENCE{% if add_not_exi
|
||||
|
||||
CACHE {{data.cache|int}}{% endif %}{% if data.owned_table is defined and data.owned_table != None and data.owned_column is defined and data.owned_column != None %}
|
||||
|
||||
OWNED BY {{ conn|qtIdent(data.owned_table) }}.{{ conn|qtIdent(data.owned_column) }}{% endif %};
|
||||
OWNED BY {{ conn|qtIdent(data.schema) }}.{{ conn|qtIdent(data.owned_table) }}.{{ conn|qtIdent(data.owned_column) }}{% endif %};
|
||||
|
||||
|
@ -14,5 +14,5 @@ CREATE SEQUENCE{% if add_not_exists_clause %} IF NOT EXISTS{% endif %} {{ conn|q
|
||||
|
||||
CACHE {{data.cache|int}}{% endif %}{% if data.owned_table is defined and data.owned_table != None and data.owned_column is defined and data.owned_column != None %}
|
||||
|
||||
OWNED BY {{ conn|qtIdent(data.owned_table) }}.{{ conn|qtIdent(data.owned_column) }}{% endif %};
|
||||
OWNED BY {{ conn|qtIdent(data.schema) }}.{{ conn|qtIdent(data.owned_table) }}.{{ conn|qtIdent(data.owned_column) }}{% endif %};
|
||||
|
||||
|
@ -8,7 +8,7 @@ CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||
MINVALUE 5
|
||||
MAXVALUE 999
|
||||
CACHE 1
|
||||
OWNED BY tableforownedby.col2;
|
||||
OWNED BY public.tableforownedby.col2;
|
||||
|
||||
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||
OWNER TO postgres;
|
||||
|
@ -8,7 +8,7 @@ CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||
MINVALUE 5
|
||||
MAXVALUE 900
|
||||
CACHE 1
|
||||
OWNED BY tableforownedby.col2;
|
||||
OWNED BY public.tableforownedby.col2;
|
||||
|
||||
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||
OWNER TO postgres;
|
||||
|
@ -8,7 +8,7 @@ CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||
MINVALUE 5
|
||||
MAXVALUE 999
|
||||
CACHE 1
|
||||
OWNED BY tableforownedby.col1;
|
||||
OWNED BY public.tableforownedby.col1;
|
||||
|
||||
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||
OWNER TO postgres;
|
||||
|
@ -4,7 +4,7 @@ CREATE SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||
MINVALUE 5
|
||||
MAXVALUE 999
|
||||
CACHE 1
|
||||
OWNED BY tableforownedby.col1;
|
||||
OWNED BY public.tableforownedby.col1;
|
||||
|
||||
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||
OWNER TO postgres;
|
||||
|
Loading…
Reference in New Issue
Block a user