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,
--- /dev/null
+-- 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;
+++ /dev/null
--- 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;