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 ('0971', :eg_version); -- csharp/Dyrcona
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0972', :eg_version); -- jstompro/gmcharlt
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0972', :eg_version); -- jstompro/gmcharlt
+
+-- LP#1550495 - Add Baker&Taylor EDI Quantity Cancel Code
+-- Insert EDI Cancel Reason 85 (1200 + 85 = 1285) if it doesn't already exist
+INSERT INTO acq.cancel_reason
+ (org_unit, keep_debits, id, label, description)
+ SELECT
+ 1, 'f',( 85+1200),
+ oils_i18n_gettext(1285, 'Canceled: By Vendor', 'acqcr', 'label'),
+ oils_i18n_gettext(1285, 'Line item canceled by vendor', 'acqcr', 'description')
+ WHERE NOT EXISTS (
+ SELECT 1 FROM acq.cancel_reason where id=(85+1200)
+ );
+
+
+COMMIT;
+++ /dev/null
-BEGIN;
-
--- INSERT INTO config.upgrade_log (version) VALUES ('xxxx');
-
--- LP#1550495 - Add Baker&Taylor EDI Quantity Cancel Code
--- Insert EDI Cancel Reason 85 (1200 + 85 = 1285) if it doesn't already exist
-INSERT INTO acq.cancel_reason
- (org_unit, keep_debits, id, label, description)
- SELECT
- 1, 'f',( 85+1200),
- oils_i18n_gettext(1285, 'Canceled: By Vendor', 'acqcr', 'label'),
- oils_i18n_gettext(1285, 'Line item canceled by vendor', 'acqcr', 'description')
- WHERE NOT EXISTS (
- SELECT 1 FROM acq.cancel_reason where id=(85+1200)
- );
-
-
-COMMIT;