Skip to content
Snippets Groups Projects
Commit ea9822da authored by Eric Cano's avatar Eric Cano
Browse files

Moved grant to after creation of the targeted view.

parent ab3ac683
No related branches found
No related tags found
No related merge requests found
......@@ -103,10 +103,3 @@ ALTER TABLE vmgr_tape_pool
ALTER TABLE vmgr_tape_tag
ADD CONSTRAINT fk_t_vid FOREIGN KEY (vid) REFERENCES vmgr_tape_info(vid)
ADD CONSTRAINT pk_tag PRIMARY KEY (vid);
-- Permissions should be granted to the CNS schema for VMGR_TAPE_SIDE and
-- VMGR_TAPE_STATUS_VIEW.
UNDEF cnsSchema
ACCEPT cnsSchema CHAR DEFAULT 'castor_ns' PROMPT 'Enter the name of the NS schema (default castor_ns): ';
GRANT SELECT ON vmgr_tape_side TO &cnsSchema;
GRANT SELECT ON vmgr_tape_status_view TO &cnsSchema;
\ No newline at end of file
......@@ -395,3 +395,10 @@ BEGIN
END LOOP;
END;
/
-- Permissions should be granted to the CNS schema for VMGR_TAPE_SIDE and
-- VMGR_TAPE_STATUS_VIEW.
UNDEF cnsSchema
ACCEPT cnsSchema CHAR DEFAULT 'castor_ns' PROMPT 'Enter the name of the NS schema (default castor_ns): ';
GRANT SELECT ON vmgr_tape_side TO &cnsSchema;
GRANT SELECT ON vmgr_tape_status_view TO &cnsSchema;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment