From: Jason Etheridge Date: Thu, 1 Dec 2011 21:02:29 +0000 (-0500) Subject: pin a version number for the patron card editor upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e0a936729ada587e33ab3a701901c3d0a1ed3acb;p=contrib%2FConifer.git pin a version number for the patron card editor upgrade script Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 9930af5dfb..54865b3a16 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -86,7 +86,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 ('0653', :eg_version); -- berick/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0654', :eg_version); -- phasefx/tsbere CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0654.patron_card_editor.sql b/Open-ILS/src/sql/Pg/upgrade/0654.patron_card_editor.sql new file mode 100644 index 0000000000..06c40e8390 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0654.patron_card_editor.sql @@ -0,0 +1,11 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0654', :eg_version); + +INSERT INTO permission.perm_list ( id, code, description ) VALUES + ( 514, 'UPDATE_PATRON_ACTIVE_CARD', oils_i18n_gettext( 514, + 'Allows a user to manually adjust a patron''s active cards', 'ppl', 'description')), + ( 515, 'UPDATE_PATRON_PRIMARY_CARD', oils_i18n_gettext( 515, + 'Allows a user to manually adjust a patron''s primary card', 'ppl', 'description')); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.patron_card_editor.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.patron_card_editor.sql deleted file mode 100644 index 2c7cd3ab6a..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.patron_card_editor.sql +++ /dev/null @@ -1,6 +0,0 @@ -INSERT INTO permission.perm_list ( id, code, description ) VALUES - ( 514, 'UPDATE_PATRON_ACTIVE_CARD', oils_i18n_gettext( 514, - 'Allows a user to manually adjust a patron''s active cards', 'ppl', 'description')), - ( 515, 'UPDATE_PATRON_PRIMARY_CARD', oils_i18n_gettext( 515, - 'Allows a user to manually adjust a patron''s primary card', 'ppl', 'description')); -