]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0422.schema.acq.lineitem-history-bigint.sql
LP1079041 - making state not required (continued)
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0422.schema.acq.lineitem-history-bigint.sql
1 BEGIN;
2
3 -- Turn an int into a bigint in acq.acq_lineitem_history, following up on
4 -- a similar change to acq.lineitem
5
6 INSERT INTO config.upgrade_log (version) VALUES ('0422'); -- Scott McKellar
7
8 DROP VIEW IF EXISTS acq.acq_lineitem_lifecycle;
9
10 ALTER TABLE acq.acq_lineitem_history
11         ALTER COLUMN eg_bib_id SET DATA TYPE bigint;
12
13 SELECT acq.create_acq_lifecycle( 'acq', 'lineitem' );
14
15 COMMIT;