From: Bill Erickson Date: Thu, 1 Aug 2013 17:30:52 +0000 (-0400) Subject: LP1207396 DB / IDL X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fff337a57d93ecd1d626fc3140bb416f6c123921;p=evergreen%2Fequinox.git LP1207396 DB / IDL Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 5053070a68..aa6f98be67 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -8938,7 +8938,11 @@ SELECT usr, + + + + diff --git a/Open-ILS/src/sql/Pg/015.schema.staging.sql b/Open-ILS/src/sql/Pg/015.schema.staging.sql index 893650d10a..6febdba6e7 100644 --- a/Open-ILS/src/sql/Pg/015.schema.staging.sql +++ b/Open-ILS/src/sql/Pg/015.schema.staging.sql @@ -6,7 +6,7 @@ CREATE SCHEMA staging; CREATE TABLE staging.user_stage ( row_id BIGSERIAL PRIMARY KEY, - row_date TIMESTAMP WITH TIME ZONE DEFAULT NOW(), + row_date TIMESTAMP WITH TIME ZONE DEFAULT NOW(), usrname TEXT NOT NULL, profile TEXT, email TEXT, @@ -19,7 +19,8 @@ CREATE TABLE staging.user_stage ( evening_phone TEXT, home_ou INT DEFAULT 2, dob TEXT, - complete BOOL DEFAULT FALSE + complete BOOL DEFAULT FALSE, + requesting_usr INT REFERENCES actor.usr(id) ON DELETE SET NULL ); CREATE TABLE staging.card_stage ( -- for new library barcodes diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.patron-self-reg.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.patron-self-reg.sql new file mode 100644 index 0000000000..4ab44decfc --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.patron-self-reg.sql @@ -0,0 +1,63 @@ + +BEGIN; + +-- Track the requesting user +ALTER TABLE staging.user_stage + ADD COLUMN requesting_usr INTEGER + REFERENCES actor.usr(id) ON DELETE SET NULL; + +INSERT INTO config.org_unit_setting_type + (name, grp, datatype, label, description) +VALUES ( + 'opac.allow_pending_user', + 'opac', + 'bool', + oils_i18n_gettext( + 'opac.allow_pending_user', + 'Allow Patron Self-Registration', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'opac.allow_pending_user', + 'Allow patrons to self-register, creating pending user accounts', + 'coust', + 'description' + ) +), ( + 'opac.pending_user_expire_interval', + 'opac', + 'interval', + oils_i18n_gettext( + 'opac.pending_user_expire_interval', + 'Patron Self-Reg. Expire Interval', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'opac.pending_user_expire_interval', + 'If set, this is the amount of time a pending user account will ' || + 'be allowed to sit in the database. After this time, the pending ' || + 'user information will be purged', + 'coust', + 'description' + ) +), ( + 'ui.patron.edit.aua.county.show', + 'gui', + 'bool', + oils_i18n_gettext( + 'ui.patron.edit.aua.county.require', + 'Show count field on patron registration', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'ui.patron.edit.aua.county.require', + 'The county field will be shown on the patron registration screen', + 'coust', + 'description' + ) +); + +COMMIT;