Upgrade script numbering for new toolbar perms
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 17 Oct 2012 00:55:38 +0000 (20:55 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 17 Oct 2012 00:55:38 +0000 (20:55 -0400)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0741.data.toolbar_perms.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.toolbar_perms.sql [deleted file]

index 504ee6c..9a70b3a 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 ('0740', :eg_version); -- miker/senator
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0741', :eg_version); -- phasefx/senator
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0741.data.toolbar_perms.sql b/Open-ILS/src/sql/Pg/upgrade/0741.data.toolbar_perms.sql
new file mode 100644 (file)
index 0000000..b214f36
--- /dev/null
@@ -0,0 +1,35 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0741', :eg_version);
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES (
+    540,
+    'ADMIN_TOOLBAR_FOR_ORG',
+    oils_i18n_gettext(
+        540,
+        'Allows a user to create, edit, and delete custom toolbars for org units',
+        'ppl',
+        'description'
+    )
+), (
+    541,
+    'ADMIN_TOOLBAR_FOR_WORKSTATION',
+    oils_i18n_gettext(
+        541,
+        'Allows a user to create, edit, and delete custom toolbars for workstations',
+        'ppl',
+        'description'
+    )
+), (
+    542,
+    'ADMIN_TOOLBAR_FOR_USER',
+    oils_i18n_gettext(
+        542,
+        'Allows a user to create, edit, and delete custom toolbars for users',
+        'ppl',
+        'description'
+    )
+);
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.toolbar_perms.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.toolbar_perms.sql
deleted file mode 100644 (file)
index 36b9a7b..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO permission.perm_list ( id, code, description ) VALUES (
-    540,
-    'ADMIN_TOOLBAR_FOR_ORG',
-    oils_i18n_gettext(
-        540,
-        'Allows a user to create, edit, and delete custom toolbars for org units',
-        'ppl',
-        'description'
-    )
-), (
-    541,
-    'ADMIN_TOOLBAR_FOR_WORKSTATION',
-    oils_i18n_gettext(
-        541,
-        'Allows a user to create, edit, and delete custom toolbars for workstations',
-        'ppl',
-        'description'
-    )
-), (
-    542,
-    'ADMIN_TOOLBAR_FOR_USER',
-    oils_i18n_gettext(
-        542,
-        'Allows a user to create, edit, and delete custom toolbars for users',
-        'ppl',
-        'description'
-    )
-);
-
-COMMIT;
-