CREATE TABLE config.openathens_identity (
id SERIAL PRIMARY KEY,
active BOOL NOT NULL DEFAULT true,
- org_unit INT NOT NULL REFERENCES actor.org_unit (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
+ org_unit INT NOT NULL, -- REFERENCES actor.org_unit (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
api_key TEXT NOT NULL,
connection_id TEXT NOT NULL,
connection_uri TEXT NOT NULL,
ALTER TABLE config.marc_field ADD CONSTRAINT config_marc_field_owner_fkey FOREIGN KEY (owner) REFERENCES actor.org_unit(id) DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE config.marc_subfield ADD CONSTRAINT config_marc_subfield_owner_fkey FOREIGN KEY (owner) REFERENCES actor.org_unit(id) DEFERRABLE INITIALLY DEFERRED;
+ALTER TABLE config.openathens_identity ADD CONSTRAINT config_openathens_identity_ou_fkey
+FOREIGN KEY (org_unit) REFERENCES actor.org_unit (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
+
+
ALTER TABLE config.copy_tag_type ADD CONSTRAINT copy_tag_type_owner_fkey FOREIGN KEY (owner) REFERENCES actor.org_unit(id) DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE config.print_template ADD CONSTRAINT cpt_owner_fkey
( 621, 'VIEW_BOOKING_RESOURCE_TYPE', oils_i18n_gettext(621,
'View booking resource types', 'ppl', 'description')),
( 622, 'VIEW_BOOKING_RESOURCE', oils_i18n_gettext(622,
- 'View booking resources', 'ppl', 'description'))
+ 'View booking resources', 'ppl', 'description')),
+ ( 623, 'ADMIN_OPENATHENS', oils_i18n_gettext(623,
+ 'Allow a user to administer OpenAthens authentication service', 'ppl', 'description'))
;
release_home_ou BOOL NOT NULL DEFAULT false
);
+
+INSERT INTO permission.perm_list ( id, code, description) VALUES
+ ( 623, 'ADMIN_OPENATHENS', oils_i18n_gettext(623,
+ 'Allow a user to administer OpenAthens authentication service', 'ppl', 'description'));
+
COMMIT;