mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added support of Packages, Sequences and Synonyms to the Schema Diff. Fixes #5264
This commit is contained in:
@@ -688,3 +688,50 @@ CREATE TYPE source.typ_enum_range_diff AS ENUM
|
||||
('test_enum', 'test_enum_1');
|
||||
ALTER TYPE source.typ_enum_range_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
-- Sequences Script
|
||||
CREATE SEQUENCE source.seq_src
|
||||
CYCLE
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 3
|
||||
CACHE 6;
|
||||
ALTER SEQUENCE source.seq_src
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE source.seq_src
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE source.seq_src TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE source.seq_src TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff_comment_acl
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE source.seq_diff_comment_acl
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE source.seq_diff_comment_acl
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE source.seq_diff_comment_acl TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE source.seq_diff_comment_acl TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff_comment_acl_remove
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE source.seq_diff_comment_acl_remove
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff
|
||||
CYCLE
|
||||
INCREMENT 3
|
||||
START 3
|
||||
MINVALUE 3
|
||||
MAXVALUE 100
|
||||
CACHE 2;
|
||||
ALTER SEQUENCE source.seq_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
@@ -642,3 +642,47 @@ CREATE TYPE target.typ_enum_range_diff AS RANGE
|
||||
);
|
||||
ALTER TYPE target.typ_enum_range_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
-- Sequences Script
|
||||
CREATE SEQUENCE target.seq_tar
|
||||
CYCLE
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 3
|
||||
CACHE 6;
|
||||
ALTER SEQUENCE target.seq_tar
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff_comment_acl
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
|
||||
ALTER SEQUENCE target.seq_diff_comment_acl
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff_comment_acl_remove
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE target.seq_diff_comment_acl_remove
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE target.seq_diff_comment_acl_remove
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE target.seq_diff_comment_acl_remove TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE target.seq_diff_comment_acl_remove TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff
|
||||
INCREMENT 5
|
||||
START 3
|
||||
MINVALUE 3
|
||||
MAXVALUE 80
|
||||
CACHE 1;
|
||||
|
||||
ALTER SEQUENCE target.seq_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
@@ -651,3 +651,50 @@ CREATE TYPE source.typ_enum_range_diff AS ENUM
|
||||
('test_enum', 'test_enum_1');
|
||||
ALTER TYPE source.typ_enum_range_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
-- Sequences Script
|
||||
CREATE SEQUENCE source.seq_src
|
||||
CYCLE
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 3
|
||||
CACHE 6;
|
||||
ALTER SEQUENCE source.seq_src
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE source.seq_src
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE source.seq_src TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE source.seq_src TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff_comment_acl
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE source.seq_diff_comment_acl
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE source.seq_diff_comment_acl
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE source.seq_diff_comment_acl TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE source.seq_diff_comment_acl TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff_comment_acl_remove
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE source.seq_diff_comment_acl_remove
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff
|
||||
CYCLE
|
||||
INCREMENT 3
|
||||
START 3
|
||||
MINVALUE 3
|
||||
MAXVALUE 100
|
||||
CACHE 2;
|
||||
ALTER SEQUENCE source.seq_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
@@ -641,3 +641,47 @@ CREATE TYPE target.typ_enum_range_diff AS RANGE
|
||||
);
|
||||
ALTER TYPE target.typ_enum_range_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
-- Sequences Script
|
||||
CREATE SEQUENCE target.seq_tar
|
||||
CYCLE
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 3
|
||||
CACHE 6;
|
||||
ALTER SEQUENCE target.seq_tar
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff_comment_acl
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
|
||||
ALTER SEQUENCE target.seq_diff_comment_acl
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff_comment_acl_remove
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE target.seq_diff_comment_acl_remove
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE target.seq_diff_comment_acl_remove
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE target.seq_diff_comment_acl_remove TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE target.seq_diff_comment_acl_remove TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff
|
||||
INCREMENT 5
|
||||
START 3
|
||||
MINVALUE 3
|
||||
MAXVALUE 80
|
||||
CACHE 1;
|
||||
|
||||
ALTER SEQUENCE target.seq_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
@@ -652,3 +652,50 @@ CREATE TYPE source.typ_enum_range_diff AS ENUM
|
||||
('test_enum', 'test_enum_1');
|
||||
ALTER TYPE source.typ_enum_range_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
-- Sequences Script
|
||||
CREATE SEQUENCE source.seq_src
|
||||
CYCLE
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 3
|
||||
CACHE 6;
|
||||
ALTER SEQUENCE source.seq_src
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE source.seq_src
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE source.seq_src TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE source.seq_src TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff_comment_acl
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE source.seq_diff_comment_acl
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE source.seq_diff_comment_acl
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE source.seq_diff_comment_acl TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE source.seq_diff_comment_acl TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff_comment_acl_remove
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE source.seq_diff_comment_acl_remove
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff
|
||||
CYCLE
|
||||
INCREMENT 3
|
||||
START 3
|
||||
MINVALUE 3
|
||||
MAXVALUE 100
|
||||
CACHE 2;
|
||||
ALTER SEQUENCE source.seq_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
@@ -630,3 +630,47 @@ CREATE TYPE target.typ_enum_range_diff AS RANGE
|
||||
);
|
||||
ALTER TYPE target.typ_enum_range_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
-- Sequences Script
|
||||
CREATE SEQUENCE target.seq_tar
|
||||
CYCLE
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 3
|
||||
CACHE 6;
|
||||
ALTER SEQUENCE target.seq_tar
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff_comment_acl
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
|
||||
ALTER SEQUENCE target.seq_diff_comment_acl
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff_comment_acl_remove
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE target.seq_diff_comment_acl_remove
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE target.seq_diff_comment_acl_remove
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE target.seq_diff_comment_acl_remove TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE target.seq_diff_comment_acl_remove TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff
|
||||
INCREMENT 5
|
||||
START 3
|
||||
MINVALUE 3
|
||||
MAXVALUE 80
|
||||
CACHE 1;
|
||||
|
||||
ALTER SEQUENCE target.seq_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
@@ -521,3 +521,50 @@ CREATE TYPE source.typ_enum_range_diff AS ENUM
|
||||
('test_enum', 'test_enum_1');
|
||||
ALTER TYPE source.typ_enum_range_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
-- Sequences Script
|
||||
CREATE SEQUENCE source.seq_src
|
||||
CYCLE
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 3
|
||||
CACHE 6;
|
||||
ALTER SEQUENCE source.seq_src
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE source.seq_src
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE source.seq_src TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE source.seq_src TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff_comment_acl
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE source.seq_diff_comment_acl
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE source.seq_diff_comment_acl
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE source.seq_diff_comment_acl TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE source.seq_diff_comment_acl TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff_comment_acl_remove
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE source.seq_diff_comment_acl_remove
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE source.seq_diff
|
||||
CYCLE
|
||||
INCREMENT 3
|
||||
START 3
|
||||
MINVALUE 3
|
||||
MAXVALUE 100
|
||||
CACHE 2;
|
||||
ALTER SEQUENCE source.seq_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
@@ -548,3 +548,47 @@ CREATE TYPE target.typ_enum_range_diff AS RANGE
|
||||
);
|
||||
ALTER TYPE target.typ_enum_range_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
-- Sequences Script
|
||||
CREATE SEQUENCE target.seq_tar
|
||||
CYCLE
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 3
|
||||
CACHE 6;
|
||||
ALTER SEQUENCE target.seq_tar
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff_comment_acl
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
|
||||
ALTER SEQUENCE target.seq_diff_comment_acl
|
||||
OWNER TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff_comment_acl_remove
|
||||
INCREMENT 1
|
||||
START 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
CACHE 1;
|
||||
ALTER SEQUENCE target.seq_diff_comment_acl_remove
|
||||
OWNER TO postgres;
|
||||
COMMENT ON SEQUENCE target.seq_diff_comment_acl_remove
|
||||
IS 'Test Comment';
|
||||
GRANT ALL ON SEQUENCE target.seq_diff_comment_acl_remove TO PUBLIC;
|
||||
GRANT ALL ON SEQUENCE target.seq_diff_comment_acl_remove TO postgres;
|
||||
|
||||
CREATE SEQUENCE target.seq_diff
|
||||
INCREMENT 5
|
||||
START 3
|
||||
MINVALUE 3
|
||||
MAXVALUE 80
|
||||
CACHE 1;
|
||||
|
||||
ALTER SEQUENCE target.seq_diff
|
||||
OWNER TO postgres;
|
||||
|
||||
Reference in New Issue
Block a user