From: Ben Shum Date: Wed, 19 Mar 2014 14:13:06 +0000 (-0400) Subject: LP#1230557 Stamping upgrade script for perm_list_group_admin X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ade704b8a9bb64132fea036bc80a8a0ea920ee55;p=evergreen%2Fmasslnc.git LP#1230557 Stamping upgrade script for perm_list_group_admin Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index be95f68f1d..f1bde2b50b 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -91,7 +91,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 ('0875', :eg_version); -- miker/dbwells/bshum +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0876', :eg_version); -- mcooper/bshum CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0876.data.perm_list_group_system_admin.sql b/Open-ILS/src/sql/Pg/upgrade/0876.data.perm_list_group_system_admin.sql new file mode 100644 index 0000000000..d3e2f72559 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0876.data.perm_list_group_system_admin.sql @@ -0,0 +1,18 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0876', :eg_version); + +INSERT INTO permission.perm_list ( code, description ) VALUES + ( 'group_application.user.staff.admin.system_admin', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "System Administrator" group', 'ppl', 'description' )), + ( 'group_application.user.staff.cat_admin', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "Cataloging Administrator" group', 'ppl', 'description' )), + ( 'group_application.user.staff.circ_admin', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "Circulation Administrator" group', 'ppl', 'description' )), + ( 'group_application.user.staff.data_review', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "Data Review" group', 'ppl', 'description' )), + ( 'group_application.user.staff.volunteers', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "Volunteers" group', 'ppl', 'description' )) +; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.perm_list_group_system_admin.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.perm_list_group_system_admin.sql deleted file mode 100644 index 7d92cb1aa1..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.perm_list_group_system_admin.sql +++ /dev/null @@ -1,18 +0,0 @@ -BEGIN; - --- SELECT evergreen.upgrade_deps_block_check('', :eg_version); - -INSERT INTO permission.perm_list ( code, description ) VALUES - ( 'group_application.user.staff.admin.system_admin', oils_i18n_gettext( '', - 'Allow a user to add/remove users to/from the "System Administrator" group', 'ppl', 'description' )), - ( 'group_application.user.staff.cat_admin', oils_i18n_gettext( '', - 'Allow a user to add/remove users to/from the "Cataloging Administrator" group', 'ppl', 'description' )), - ( 'group_application.user.staff.circ_admin', oils_i18n_gettext( '', - 'Allow a user to add/remove users to/from the "Circulation Administrator" group', 'ppl', 'description' )), - ( 'group_application.user.staff.data_review', oils_i18n_gettext( '', - 'Allow a user to add/remove users to/from the "Data Review" group', 'ppl', 'description' )), - ( 'group_application.user.staff.volunteers', oils_i18n_gettext( '', - 'Allow a user to add/remove users to/from the "Volunteers" group', 'ppl', 'description' )) -; - -COMMIT; \ No newline at end of file