Stamping upgrade script for copy editor field hiding permission
authorMike Rylander <mrylander@gmail.com>
Thu, 16 Aug 2012 19:11:29 +0000 (15:11 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 16 Aug 2012 19:12:39 +0000 (15:12 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0736.data.copy_editor_perms.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.copy_editor_perms.sql [deleted file]

index 4c57bb6..1ded67e 100644 (file)
@@ -87,7 +87,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 ('0735', :eg_version); -- berick/kmlussier/denials
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0736', :eg_version); -- miker/tsbere
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0736.data.copy_editor_perms.sql b/Open-ILS/src/sql/Pg/upgrade/0736.data.copy_editor_perms.sql
new file mode 100644 (file)
index 0000000..546a161
--- /dev/null
@@ -0,0 +1,11 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0736', :eg_version);
+
+INSERT INTO permission.perm_list (id, code, description)
+    VALUES (539, 'UPDATE_ORG_UNIT_SETTING.ui.hide_copy_editor_fields', 'Allows staff to edit displayed copy editor fields');
+
+UPDATE config.org_unit_setting_type SET update_perm = 539 WHERE name = 'ui.hide_copy_editor_fields';
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.copy_editor_perms.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.copy_editor_perms.sql
deleted file mode 100644 (file)
index b9137b8..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-
-INSERT INTO permission.perm_list (id, code, description)
-    VALUES (539, 'UPDATE_ORG_UNIT_SETTING.ui.hide_copy_editor_fields', 'Allows staff to edit displayed copy editor fields');
-
-UPDATE config.org_unit_setting_type SET update_perm = 539 WHERE name = 'ui.hide_copy_editor_fields';
-