Stamping upgrade script for Trigger Event Log
authorMike Rylander <mrylander@gmail.com>
Mon, 23 Jul 2012 20:13:36 +0000 (16:13 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 23 Jul 2012 20:13:36 +0000 (16:13 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0719.data.actor-event-log-settings.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.actor-event-log-settings.sql [deleted file]

index ab70968..e3d73ee 100644 (file)
@@ -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 (file)
index 0000000..e24d39f
--- /dev/null
@@ -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 (file)
index 17a6d9b..0000000
+++ /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;