[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. ee6a8b602cf59f548f536ae42ce21f6eb2827f8c
Evergreen Git
git at git.evergreen-ils.org
Wed Sep 7 14:11:05 EDT 2011
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_1 has been updated
via ee6a8b602cf59f548f536ae42ce21f6eb2827f8c (commit)
from 02e621cf64093b5b2836f21f7c47a7cf7bbb34a7 (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 ee6a8b602cf59f548f536ae42ce21f6eb2827f8c
Author: Mike Rylander <mrylander at gmail.com>
Date: Wed Sep 7 14:05:25 2011 -0400
Make sure that title and author sorting data is available after a 2.0-2.1 upgrade
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql b/Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql
index 376bc08..605dfa3 100644
--- a/Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql
@@ -8785,4 +8785,21 @@ CREATE TRIGGER mat_summary_upd_tgr AFTER UPDATE ON money.check_payment FOR EACH
CREATE TRIGGER mat_summary_del_tgr BEFORE DELETE ON money.check_payment FOR EACH ROW EXECUTE PROCEDURE money.materialized_summary_payment_del ('check_payment');
+UPDATE metabib.record_attr
+ SET attrs = attrs || asort
+ FROM (SELECT record,
+ HSTORE('authorsort',FIRST(value)) AS asort
+ FROM metabib.full_rec
+ WHERE tag like '1%'
+ GROUP BY 1) x
+ WHERE x.record = metabib.record_attr.id;
+
+UPDATE metabib.record_attr
+ SET attrs = attrs || tsort
+ FROM (SELECT record,
+ HSTORE('titlesort',FIRST(value)) AS tsort
+ FROM metabib.full_rec
+ WHERE tag = 'tnf'
+ GROUP BY 1) x
+ WHERE x.record = metabib.record_attr.id;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list