]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0259.schema.acq-edi-msg-po.sql
LP1615805 No inputs after submit in patron search (AngularJS)
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0259.schema.acq-edi-msg-po.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0259'); -- Scott McKellar
4
5 -- Warning: Due to an oversight, the acq.edi_message table was added via an
6 -- upgrade script, but the CREATE TABLE statement was never added to the
7 -- 200.schema.acq.sql script (till now).
8
9 -- If you have rebuilt your system from scratch since then, you may find that
10 -- the following ALTER will fail because the table doesn't exist yet.
11
12 -- Solution: run the relevant CREATE TABLE statement from 200.schema.acq.sql
13 -- instead of this upgrade script.  You may also want to manually insert a
14 -- row into config.upgrade_log, as per the above.
15
16 ALTER TABLE acq.edi_message
17     ADD COLUMN purchase_order INT
18         REFERENCES acq.purchase_order
19         DEFERRABLE INITIALLY DEFERRED;
20
21 COMMIT;