[open-ils-commits] r9908 - trunk/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Jun 22 14:04:58 EDT 2008


Author: dbs
Date: 2008-06-22 14:04:55 -0400 (Sun, 22 Jun 2008)
New Revision: 9908

Modified:
   trunk/Open-ILS/src/sql/Pg/1.2.2.1-1.2.2.2-upgrade-db.sql
Log:
Fix typo from 9880 for upgrade SQL as well


Modified: trunk/Open-ILS/src/sql/Pg/1.2.2.1-1.2.2.2-upgrade-db.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/1.2.2.1-1.2.2.2-upgrade-db.sql	2008-06-22 01:02:14 UTC (rev 9907)
+++ trunk/Open-ILS/src/sql/Pg/1.2.2.1-1.2.2.2-upgrade-db.sql	2008-06-22 18:04:55 UTC (rev 9908)
@@ -18,7 +18,7 @@
 
 CREATE SCHEMA extend_reporter;
 
-CREATE TABLE extend_reporter.legcay_circ_count (
+CREATE TABLE extend_reporter.legacy_circ_count (
     id          BIGSERIAL   PRIMARY KEY REFERENCES asset.copy (id)
     circ_count  INT         NOT NULL DEFAULT 0
 );
@@ -26,7 +26,7 @@
 CREATE VIEW extend_reporter.full_circ_count AS
  SELECT cp.id, COALESCE(sum(c.circ_count), 0::bigint) + COALESCE(count(circ.id), 0::bigint) AS circ_count
    FROM asset."copy" cp
-   LEFT JOIN extend_reporter.legcay_circ_count c USING (id)
+   LEFT JOIN extend_reporter.legacy_circ_count c USING (id)
    LEFT JOIN "action".circulation circ ON circ.target_copy = c.id
   GROUP BY cp.id;
 



More information about the open-ils-commits mailing list