BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('XXXX');
-
INSERT INTO permission.perm_list ( id, code, description ) VALUES
( 615, 'ADMIN_REMOTEAUTH', oils_i18n_gettext( 615,
'Administer remote patron authentication', 'ppl', 'description' ));
restrict_to_org BOOLEAN NOT NULL DEFAULT TRUE,
allow_inactive BOOL NOT NULL DEFAULT FALSE,
allow_expired BOOL NOT NULL DEFAULT FALSE,
- block_list TEXT
+ block_list TEXT,
+ usr_activity_type INT REFERENCES config.usr_activity_type(id) ON UPDATE CASCADE ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED
);
CREATE OR REPLACE FUNCTION actor.permit_remoteauth (profile_name TEXT, userid BIGINT) RETURNS TEXT AS $func$