From 9cf4d05edc6ef2c75abbbd054faf121dd83ad32f Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Thu, 19 Oct 2017 16:38:18 -0400 Subject: [PATCH] Forward-port 3.0.1 upgrade script Signed-off-by: Dan Wells --- .../3.0.0-3.0.1-upgrade-db.sql | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Open-ILS/src/sql/Pg/version-upgrade/3.0.0-3.0.1-upgrade-db.sql diff --git a/Open-ILS/src/sql/Pg/version-upgrade/3.0.0-3.0.1-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/3.0.0-3.0.1-upgrade-db.sql new file mode 100644 index 0000000000..deb54a0fed --- /dev/null +++ b/Open-ILS/src/sql/Pg/version-upgrade/3.0.0-3.0.1-upgrade-db.sql @@ -0,0 +1,28 @@ +--Upgrade Script for 3.0.0 to 3.0.1 +\set eg_version '''3.0.1''' +BEGIN; +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('3.0.1', :eg_version); + +-- 3.0.0 release log fixup +UPDATE config.upgrade_log SET version = '3.0.0' where applied_to = '3.0.0' and version = '3.0-beta1'; + +SELECT evergreen.upgrade_deps_block_check('1078', :eg_version); -- csharp/bshum/gmcharlt + +-- The following billing types would not have been automatically added +-- in upgrade scripts between versions 1.2 and 1.4 (early 2009). We +-- add them here. It's okay if they fail, so this should probably be +-- run outside a transaction if added to the version-upgrade scripts. + +INSERT INTO config.billing_type (id, name, owner) + SELECT 7, 'Damaged Item', 1 + WHERE NOT EXISTS (SELECT 1 FROM config.billing_type WHERE name = 'Damaged Item'); + +INSERT INTO config.billing_type (id, name, owner) + SELECT 8, 'Damaged Item Processing Fee', 1 + WHERE NOT EXISTS (SELECT 1 FROM config.billing_type WHERE name = 'Damaged Item Processing Fee'); + +INSERT INTO config.billing_type (id, name, owner) + SELECT 9, 'Notification Fee', 1 + WHERE NOT EXISTS (SELECT 1 FROM config.billing_type WHERE name = 'Notification Fee'); + +COMMIT; -- 2.43.2