lp1709521 stamping schema upgrade
authorJason Etheridge <jason@EquinoxInitiative.org>
Thu, 31 Aug 2017 03:48:24 +0000 (23:48 -0400)
committerJason Etheridge <jason@EquinoxInitiative.org>
Thu, 31 Aug 2017 03:48:24 +0000 (23:48 -0400)
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1061.data.recent-patrons.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.recent-patrons.sql [deleted file]

index 9bf7ff5..5962835 100644 (file)
@@ -90,7 +90,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 ('1060', :eg_version); -- Bmagic/csharp/phasefx
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1061', :eg_version); -- berick/kmlussier/cesardv/phasefx
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1061.data.recent-patrons.sql b/Open-ILS/src/sql/Pg/upgrade/1061.data.recent-patrons.sql
new file mode 100644 (file)
index 0000000..97c98f8
--- /dev/null
@@ -0,0 +1,26 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1061', :eg_version);
+
+INSERT INTO config.org_unit_setting_type
+    (name, label, description, grp, datatype)
+VALUES (
+    'ui.staff.max_recent_patrons',
+    oils_i18n_gettext(
+        'ui.staff.max_recent_patrons',
+        'Number of Retrievable Recent Patrons',
+        'coust',
+        'label'
+    ),
+    oils_i18n_gettext(
+        'ui.staff.max_recent_patrons',
+        'Number of most recently accessed patrons that can be re-retrieved ' ||
+        'in the staff client.  A value of 0 or less disables the feature. Defaults to 1.',
+        'coust',
+        'description'
+    ),
+    'circ',
+    'integer'
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.recent-patrons.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.recent-patrons.sql
deleted file mode 100644 (file)
index 89dd857..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.org_unit_setting_type
-    (name, label, description, grp, datatype)
-VALUES (
-    'ui.staff.max_recent_patrons',
-    oils_i18n_gettext(
-        'ui.staff.max_recent_patrons',
-        'Number of Retrievable Recent Patrons',
-        'coust',
-        'label'
-    ),
-    oils_i18n_gettext(
-        'ui.staff.max_recent_patrons',
-        'Number of most recently accessed patrons that can be re-retrieved ' ||
-        'in the staff client.  A value of 0 or less disables the feature. Defaults to 1.',
-        'coust',
-        'description'
-    ),
-    'circ',
-    'integer'
-);
-
-COMMIT;