LP#1806087 Stamp upgrade script for staff catalog preview
authorDan Wells <dbw2@calvin.edu>
Wed, 20 Feb 2019 22:05:25 +0000 (17:05 -0500)
committerDan Wells <dbw2@calvin.edu>
Wed, 20 Feb 2019 22:05:25 +0000 (17:05 -0500)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1151.data.ang-catalog-preview-setting.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-catalog-preview-setting.sql [deleted file]

index fc8ff66..eb484ce 100644 (file)
@@ -92,7 +92,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 ('1149', :eg_version); -- Dyrcona/mmorgan/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1152', :eg_version); -- berick/dbwells
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1151.data.ang-catalog-preview-setting.sql b/Open-ILS/src/sql/Pg/upgrade/1151.data.ang-catalog-preview-setting.sql
new file mode 100644 (file)
index 0000000..794d5ca
--- /dev/null
@@ -0,0 +1,23 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1152', :eg_version);
+
+INSERT into config.org_unit_setting_type 
+    (name, datatype, grp, label, description)
+VALUES ( 
+    'ui.staff.angular_catalog.enabled', 'bool', 'gui',
+    oils_i18n_gettext(
+        'ui.staff.angular_catalog.enabled',
+        'GUI: Enable Experimental Angular Staff Catalog',
+        'coust', 'label'
+    ),
+    oils_i18n_gettext(
+        'ui.staff.angular_catalog.enabled',
+        'Display an entry point in the browser client for the ' ||
+        'experimental Angular staff catalog.',
+        'coust', 'description'
+    )
+);
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-catalog-preview-setting.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-catalog-preview-setting.sql
deleted file mode 100644 (file)
index 1bc4888..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.org_unit_setting_type 
-    (name, datatype, grp, label, description)
-VALUES ( 
-    'ui.staff.angular_catalog.enabled', 'bool', 'gui',
-    oils_i18n_gettext(
-        'ui.staff.angular_catalog.enabled',
-        'GUI: Enable Experimental Angular Staff Catalog',
-        'coust', 'label'
-    ),
-    oils_i18n_gettext(
-        'ui.staff.angular_catalog.enabled',
-        'Display an entry point in the browser client for the ' ||
-        'experimental Angular staff catalog.',
-        'coust', 'description'
-    )
-);
-
-COMMIT;
-