From: Mike Rylander Date: Mon, 23 Jul 2012 20:13:36 +0000 (-0400) Subject: Stamping upgrade script for Trigger Event Log X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=488d6535c75189e7654c95337f3b2d0005938018;p=evergreen%2Fpines.git Stamping upgrade script for Trigger Event Log Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index ab709683ad..e3d73ee5b7 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -87,7 +87,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0717', :eg_version); -- eeevil/senator +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0719', :eg_version); -- eeevil/senator CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0719.data.actor-event-log-settings.sql b/Open-ILS/src/sql/Pg/upgrade/0719.data.actor-event-log-settings.sql new file mode 100644 index 0000000000..e24d39f4ab --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0719.data.actor-event-log-settings.sql @@ -0,0 +1,46 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0719', :eg_version); + +INSERT INTO config.org_unit_setting_type ( + name, label, grp, description, datatype +) VALUES ( + 'circ.staff.max_visible_event_age', + 'Maximum visible age of User Trigger Events in Staff Interfaces', + 'circ', + 'If this is unset, staff can view User Trigger Events regardless of age. When this is set to an interval, it represents the age of the oldest possible User Trigger Event that can be viewed.', + 'interval' +); + +INSERT INTO config.usr_setting_type (name,grp,opac_visible,label,description,datatype) VALUES ( + 'ui.grid_columns.actor.user.event_log', + 'gui', + FALSE, + oils_i18n_gettext( + 'ui.grid_columns.actor.user.event_log', + 'User Event Log', + 'cust', + 'label' + ), + oils_i18n_gettext( + 'ui.grid_columns.actor.user.event_log', + 'User Event Log Saved Column Settings', + 'cust', + 'description' + ), + 'string' +); + +INSERT INTO permission.perm_list ( id, code, description ) + VALUES ( + 535, + 'VIEW_TRIGGER_EVENT', + oils_i18n_gettext( + 535, + 'Allows a user to view circ- and hold-related action/trigger events', + 'ppl', + 'description' + ) + ); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.actor-event-log-settings.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.actor-event-log-settings.sql deleted file mode 100644 index 17a6d9b94a..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.actor-event-log-settings.sql +++ /dev/null @@ -1,46 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO config.org_unit_setting_type ( - name, label, grp, description, datatype -) VALUES ( - 'circ.staff.max_visible_event_age', - 'Maximum visible age of User Trigger Events in Staff Interfaces', - 'circ', - 'If this is unset, staff can view User Trigger Events regardless of age. When this is set to an interval, it represents the age of the oldest possible User Trigger Event that can be viewed.', - 'interval' -); - -INSERT INTO config.usr_setting_type (name,grp,opac_visible,label,description,datatype) VALUES ( - 'ui.grid_columns.actor.user.event_log', - 'gui', - FALSE, - oils_i18n_gettext( - 'ui.grid_columns.actor.user.event_log', - 'User Event Log', - 'cust', - 'label' - ), - oils_i18n_gettext( - 'ui.grid_columns.actor.user.event_log', - 'User Event Log Saved Column Settings', - 'cust', - 'description' - ), - 'string' -); - -INSERT INTO permission.perm_list ( id, code, description ) - VALUES ( - 535, - 'VIEW_TRIGGER_EVENT', - oils_i18n_gettext( - 535, - 'Allows a user to view circ- and hold-related action/trigger events', - 'ppl', - 'description' - ) - ); - -COMMIT;