[open-ils-commits] r11891 - branches/rel_1_4/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jan 20 14:59:16 EST 2009
Author: miker
Date: 2009-01-20 14:59:13 -0500 (Tue, 20 Jan 2009)
New Revision: 11891
Modified:
branches/rel_1_4/Open-ILS/src/sql/Pg/extend-reporter.sql
Log:
remove useless select during schema installation
Modified: branches/rel_1_4/Open-ILS/src/sql/Pg/extend-reporter.sql
===================================================================
--- branches/rel_1_4/Open-ILS/src/sql/Pg/extend-reporter.sql 2009-01-20 19:58:33 UTC (rev 11890)
+++ branches/rel_1_4/Open-ILS/src/sql/Pg/extend-reporter.sql 2009-01-20 19:59:13 UTC (rev 11891)
@@ -55,27 +55,5 @@
GROUP BY b.id)x
ORDER BY id, holding_update;
- SELECT id, LAST(holding_update) AS holding_update, update_type
- FROM (SELECT b.id,
- LAST(cp.create_date) AS holding_update,
- 'add' AS update_type
- FROM biblio.record_entry b
- JOIN asset.call_number cn ON (cn.record = b.id)
- JOIN asset.copy cp ON (cp.call_number = cn.id)
- WHERE NOT cp.deleted
- AND b.id > 0
- GROUP BY b.id
- UNION
- SELECT b.id,
- LAST(cp.edit_date) AS holding_update,
- 'delete' AS update_type
- FROM biblio.record_entry b
- JOIN asset.call_number cn ON (cn.record = b.id)
- JOIN asset.copy cp ON (cp.call_number = cn.id)
- WHERE cp.deleted
- AND b.id > 0
- GROUP BY b.id)x
- GROUP BY id, update_type;
-
COMMIT;
More information about the open-ils-commits
mailing list