LP#1835127 - Stamp upgrade script
authorChris Sharp <csharp@georgialibraries.org>
Wed, 23 Sep 2020 20:33:06 +0000 (16:33 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 23 Sep 2020 20:33:06 +0000 (16:33 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1238.data.permission.booking_reservation.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_reservation.sql [deleted file]

index df03e85..8e98811 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 ('1237', :eg_version); -- berick/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1238', :eg_version); -- jeffdavis/csharp
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1238.data.permission.booking_reservation.sql b/Open-ILS/src/sql/Pg/upgrade/1238.data.permission.booking_reservation.sql
new file mode 100644 (file)
index 0000000..3259ad4
--- /dev/null
@@ -0,0 +1,12 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES
+ ( 623, 'VIEW_BOOKING_RESERVATION', oils_i18n_gettext(623,
+    'View booking reservations', 'ppl', 'description')),
+ ( 624, 'VIEW_BOOKING_RESERVATION_ATTR_MAP', oils_i18n_gettext(624,
+    'View booking reservation attribute maps', 'ppl', 'description'))
+;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_reservation.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_reservation.sql
deleted file mode 100644 (file)
index 3259ad4..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO permission.perm_list ( id, code, description ) VALUES
- ( 623, 'VIEW_BOOKING_RESERVATION', oils_i18n_gettext(623,
-    'View booking reservations', 'ppl', 'description')),
- ( 624, 'VIEW_BOOKING_RESERVATION_ATTR_MAP', oils_i18n_gettext(624,
-    'View booking reservation attribute maps', 'ppl', 'description'))
-;
-
-COMMIT;