[open-ils-commits] [GIT] Evergreen ILS branch rel_2_12 updated. 6f49f439d00f48301eefc86aedf2de8bc0a79d69
Evergreen Git
git at git.evergreen-ils.org
Thu Oct 19 20:49:33 EDT 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_12 has been updated
via 6f49f439d00f48301eefc86aedf2de8bc0a79d69 (commit)
from f44120947a8dda5047781fbe226d09abab440904 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6f49f439d00f48301eefc86aedf2de8bc0a79d69
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date: Thu Oct 19 21:06:50 2017 -0400
forward-port 2.12.7 upgrade script
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.12.6-2.12.7-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.12.6-2.12.7-upgrade-db.sql
new file mode 100644
index 0000000..c23432f
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.12.6-2.12.7-upgrade-db.sql
@@ -0,0 +1,25 @@
+--Upgrade Script for 2.12.6 to 2.12.7
+\set eg_version '''2.12.7'''
+BEGIN;
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('2.12.7', :eg_version);
+
+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;
-----------------------------------------------------------------------
Summary of changes:
.../2.12.6-2.12.7-upgrade-db.sql} | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
copy Open-ILS/src/sql/Pg/{upgrade/1078.data.add_possibly_missing_billing_types.sql => version-upgrade/2.12.6-2.12.7-upgrade-db.sql} (85%)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list