From: Mike Rylander Date: Thu, 25 Aug 2011 00:16:28 +0000 (-0400) Subject: Stamped upgrade script for acq-copy-creator-from-receiver X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c2e848c0bb731c3d3667d4fee037e52754db1d04;p=contrib%2FConifer.git Stamped upgrade script for acq-copy-creator-from-receiver Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 5f5cabf3cc..941ea933c3 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 ('0609', :eg_version); -- miker/berick +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0610', :eg_version); -- miker/berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0610.data.acq-copy-creator-from-receiver.sql b/Open-ILS/src/sql/Pg/upgrade/0610.data.acq-copy-creator-from-receiver.sql new file mode 100644 index 0000000000..afc8fc80ea --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0610.data.acq-copy-creator-from-receiver.sql @@ -0,0 +1,24 @@ +-- Evergreen DB patch XXXX.data.acq-copy-creator-from-receiver.sql +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0610', :eg_version); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES ( + 'acq.copy_creator_uses_receiver', + oils_i18n_gettext( + 'acq.copy_creator_uses_receiver', + 'Acq: Set copy creator as receiver', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'acq.copy_creator_uses_receiver', + 'When receiving a copy in acquisitions, set the copy "creator" to be the staff that received the copy', + 'coust', + 'label' + ), + 'bool' +); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acq-copy-creator-from-receiver.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acq-copy-creator-from-receiver.sql deleted file mode 100644 index 14b22d454b..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acq-copy-creator-from-receiver.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Evergreen DB patch XXXX.data.acq-copy-creator-from-receiver.sql -BEGIN; - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES ( - 'acq.copy_creator_uses_receiver', - oils_i18n_gettext( - 'acq.copy_creator_uses_receiver', - 'Acq: Set copy creator as receiver', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'acq.copy_creator_uses_receiver', - 'When receiving a copy in acquisitions, set the copy "creator" to be the staff that received the copy', - 'coust', - 'label' - ), - 'bool' -); - -COMMIT;