Skip to content

Commit

Permalink
Update idmap-vid_expiry_list.sql updated script
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishch22 authored Aug 30, 2023
1 parent 219e9ea commit d788ea9
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions db_scripts/mosip_idmap/ddl/idmap-vid_expiry_list.sql
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,33 @@ GRANT ALL ON SEQUENCE idmap.vid_expirylist_id_seq TO postgres;



-- Table: idmap.batch_job_instance

-- DROP TABLE idmap.batch_job_instance;

CREATE TABLE IF NOT EXISTS idmap.batch_job_instance
(
job_instance_id bigint NOT NULL,
version bigint,
job_name character varying(100) COLLATE pg_catalog."default" NOT NULL,
job_key character varying(32) COLLATE pg_catalog."default" NOT NULL,
CONSTRAINT batch_job_instance_pkey PRIMARY KEY (job_instance_id),
CONSTRAINT job_inst_un UNIQUE (job_name, job_key)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;

ALTER TABLE idmap.batch_job_instance
OWNER to postgres;

GRANT DELETE, INSERT, REFERENCES, SELECT, UPDATE ON TABLE idmap.batch_job_instance TO idmapuser;

GRANT ALL ON TABLE idmap.batch_job_instance TO postgres;



-- Table: idmap.batch_job_execution

-- DROP TABLE idmap.batch_job_execution;
Expand Down Expand Up @@ -185,33 +212,6 @@ GRANT ALL ON TABLE idmap.batch_job_execution_params TO postgres;



-- Table: idmap.batch_job_instance

-- DROP TABLE idmap.batch_job_instance;

CREATE TABLE IF NOT EXISTS idmap.batch_job_instance
(
job_instance_id bigint NOT NULL,
version bigint,
job_name character varying(100) COLLATE pg_catalog."default" NOT NULL,
job_key character varying(32) COLLATE pg_catalog."default" NOT NULL,
CONSTRAINT batch_job_instance_pkey PRIMARY KEY (job_instance_id),
CONSTRAINT job_inst_un UNIQUE (job_name, job_key)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;

ALTER TABLE idmap.batch_job_instance
OWNER to postgres;

GRANT DELETE, INSERT, REFERENCES, SELECT, UPDATE ON TABLE idmap.batch_job_instance TO idmapuser;

GRANT ALL ON TABLE idmap.batch_job_instance TO postgres;



-- Table: idmap.batch_step_execution

-- DROP TABLE idmap.batch_step_execution;
Expand Down Expand Up @@ -308,4 +308,4 @@ ALTER TABLE idmap.vid_expirylist

GRANT DELETE, INSERT, REFERENCES, SELECT, UPDATE ON TABLE idmap.vid_expirylist TO idmapuser;

GRANT ALL ON TABLE idmap.vid_expirylist TO postgres;
GRANT ALL ON TABLE idmap.vid_expirylist TO postgres;

0 comments on commit d788ea9

Please sign in to comment.