]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/version-upgrade/3.0.0-3.0.1-upgrade-db.sql
Docs: incorporating offline circ docs
[Evergreen.git] / Open-ILS / src / sql / Pg / version-upgrade / 3.0.0-3.0.1-upgrade-db.sql
1 --Upgrade Script for 3.0.0 to 3.0.1
2 \set eg_version '''3.0.1'''
3 BEGIN;
4 INSERT INTO config.upgrade_log (version, applied_to) VALUES ('3.0.1', :eg_version);
5
6 -- 3.0.0 release log fixup
7 UPDATE config.upgrade_log SET version = '3.0.0' where applied_to = '3.0.0' and version = '3.0-beta1';
8
9 SELECT evergreen.upgrade_deps_block_check('1078', :eg_version); -- csharp/bshum/gmcharlt
10
11 -- The following billing types would not have been automatically added
12 -- in upgrade scripts between versions 1.2 and 1.4 (early 2009).  We
13 -- add them here.  It's okay if they fail, so this should probably be 
14 -- run outside a transaction if added to the version-upgrade scripts.
15
16 INSERT INTO config.billing_type (id, name, owner)
17     SELECT 7, 'Damaged Item', 1
18     WHERE NOT EXISTS (SELECT 1 FROM config.billing_type WHERE name = 'Damaged Item');
19
20 INSERT INTO config.billing_type (id, name, owner)
21     SELECT 8, 'Damaged Item Processing Fee', 1
22     WHERE NOT EXISTS (SELECT 1 FROM config.billing_type WHERE name = 'Damaged Item Processing Fee');
23
24 INSERT INTO config.billing_type (id, name, owner)
25     SELECT 9, 'Notification Fee', 1
26     WHERE NOT EXISTS (SELECT 1 FROM config.billing_type WHERE name = 'Notification Fee');
27
28 COMMIT;