]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0456.data.upc-lineitem-attr.sql
LP1779158 Angular7 and ng-lint updates
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0456.data.upc-lineitem-attr.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0456'); -- gmc
4
5 INSERT INTO acq.lineitem_marc_attr_definition ( code, description, xpath, remove )
6 SELECT 'upc', 'UPC', '//*[@tag="024" and @ind1="1"]/*[@code="a"]', $r$(?:-|\s.+$)$r$
7 WHERE NOT EXISTS (
8     SELECT 1 FROM acq.lineitem_marc_attr_definition WHERE code = 'upc'
9 );
10
11 COMMIT;