LP#1873048 - Stamp upgrade script
authorChris Sharp <csharp@georgialibraries.org>
Mon, 4 May 2020 17:20:09 +0000 (13:20 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 4 May 2020 17:20:09 +0000 (13:20 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1204.data.permission.booking_resource.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_resource.sql [deleted file]

index 5aed8bc..a7c976a 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');
 
     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 ('1203', :eg_version); -- phasefx/lstratton/bshum
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1204', :eg_version); -- jeffdavis/sandbergja/csharp
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1204.data.permission.booking_resource.sql b/Open-ILS/src/sql/Pg/upgrade/1204.data.permission.booking_resource.sql
new file mode 100644 (file)
index 0000000..985e567
--- /dev/null
@@ -0,0 +1,11 @@
+BEGIN;
+SELECT evergreen.upgrade_deps_block_check('1204', :eg_version);
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES
+ ( 621, 'VIEW_BOOKING_RESOURCE_TYPE', oils_i18n_gettext(621,
+    'View booking resource types', 'ppl', 'description')),
+ ( 622, 'VIEW_BOOKING_RESOURCE', oils_i18n_gettext(622,
+    'View booking resources', 'ppl', 'description'))
+;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_resource.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_resource.sql
deleted file mode 100644 (file)
index 2bbdce6..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-BEGIN;
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO permission.perm_list ( id, code, description ) VALUES
- ( 621, 'VIEW_BOOKING_RESOURCE_TYPE', oils_i18n_gettext(621,
-    'View booking resource types', 'ppl', 'description')),
- ( 622, 'VIEW_BOOKING_RESOURCE', oils_i18n_gettext(622,
-    'View booking resources', 'ppl', 'description'))
-;
-
-COMMIT;