From: Lebbeous Fogle-Weekley Date: Wed, 17 Oct 2012 00:55:38 +0000 (-0400) Subject: Upgrade script numbering for new toolbar perms X-Git-Tag: sprint4-merge-nov22~3724 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=95d400fa439135d3d42b26b9fe3c14d2ec767788;p=working%2FEvergreen.git Upgrade script numbering for new toolbar perms Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 504ee6cf14..9a70b3aabc 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 index 0000000000..b214f366a1 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0741.data.toolbar_perms.sql @@ -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 index 36b9a7bb78..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.toolbar_perms.sql +++ /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; -