LP#1979345: Stamping upgrade script
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 3 May 2023 05:33:43 +0000 (22:33 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 3 May 2023 05:33:43 +0000 (22:33 -0700)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/src/sql/Pg/upgrade/1372.data.permission.hold_pull_list.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.hold_pull_list.sql [deleted file]

diff --git a/Open-ILS/src/sql/Pg/upgrade/1372.data.permission.hold_pull_list.sql b/Open-ILS/src/sql/Pg/upgrade/1372.data.permission.hold_pull_list.sql
new file mode 100644 (file)
index 0000000..afcc8f5
--- /dev/null
@@ -0,0 +1,21 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1372', :eg_version);
+
+INSERT INTO permission.perm_list (id, code, description) VALUES
+ ( 643, 'VIEW_HOLD_PULL_LIST', oils_i18n_gettext(643,
+    'View hold pull list', 'ppl', 'description'));
+
+-- by default, assign VIEW_HOLD_PULL_LIST to everyone who has VIEW_HOLDS
+INSERT INTO permission.grp_perm_map (perm, grp, depth, grantable)
+    SELECT 643, grp, depth, grantable
+    FROM permission.grp_perm_map
+    WHERE perm = 9;
+
+INSERT INTO permission.usr_perm_map (perm, usr, depth, grantable)
+    SELECT 643, usr, depth, grantable
+    FROM permission.usr_perm_map
+    WHERE perm = 9;
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.hold_pull_list.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.hold_pull_list.sql
deleted file mode 100644 (file)
index 078f661..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO permission.perm_list (id, code, description) VALUES
- ( 643, 'VIEW_HOLD_PULL_LIST', oils_i18n_gettext(643,
-    'View hold pull list', 'ppl', 'description'));
-
--- by default, assign VIEW_HOLD_PULL_LIST to everyone who has VIEW_HOLDS
-INSERT INTO permission.grp_perm_map (perm, grp, depth, grantable)
-    SELECT 643, grp, depth, grantable
-    FROM permission.grp_perm_map
-    WHERE perm = 9;
-
-INSERT INTO permission.usr_perm_map (perm, usr, depth, grantable)
-    SELECT 643, usr, depth, grantable
-    FROM permission.usr_perm_map
-    WHERE perm = 9;
-
-COMMIT;
-