[open-ils-commits] r9830 - branches/rel_1_2/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jun 13 13:31:16 EDT 2008


Author: miker
Date: 2008-06-13 13:31:13 -0400 (Fri, 13 Jun 2008)
New Revision: 9830

Added:
   branches/rel_1_2/Open-ILS/src/sql/Pg/1.2.2.1-1.2.2.2-upgrade-db.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/extend-reporter.sql
Modified:
   branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg80.fts-config.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg81.fts-config.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg82.fts-config.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/001.schema.offline.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/002.functions.config.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/002.schema.config.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/005.schema.actors.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/006.data.permissions.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/006.schema.permissions.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/010.schema.biblio.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/011.schema.authority.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/020.schema.functions.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/030.schema.metabib.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/040.schema.asset.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/070.schema.container.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/080.schema.money.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/090.schema.action.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/500.view.cross-schema.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/800.fkeys.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/900.audit-functions.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/901.audit-tables.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/example.reporter-extension.sql
   branches/rel_1_2/Open-ILS/src/sql/Pg/reporter-schema.sql
Log:
backporting reporter extention schema and upgrade script; backporting copyright notices

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg80.fts-config.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg80.fts-config.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg80.fts-config.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
 
 BEGIN;
 

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg81.fts-config.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg81.fts-config.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg81.fts-config.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,4 +1,21 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
 
+
 BEGIN;
 
 CREATE OR REPLACE FUNCTION oils_tsearch2 () RETURNS TRIGGER AS $$

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg82.fts-config.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg82.fts-config.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/000.english.pg82.fts-config.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,4 +1,21 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
 
+
 BEGIN;
 
 CREATE OR REPLACE FUNCTION oils_tsearch2 () RETURNS TRIGGER AS $$

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/001.schema.offline.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/001.schema.offline.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/001.schema.offline.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,4 +1,21 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
 
+
 DROP SCHEMA offline CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/002.functions.config.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/002.functions.config.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/002.functions.config.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+
 BEGIN;
 
 CREATE OR REPLACE FUNCTION oils_xml_transform ( TEXT, TEXT ) RETURNS TEXT AS $_$

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/002.schema.config.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/002.schema.config.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,4 +1,22 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
 
+
+
 DROP SCHEMA stats CASCADE;
 DROP SCHEMA config CASCADE;
 

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/005.schema.actors.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/005.schema.actors.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/005.schema.actors.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+
 DROP SCHEMA actor CASCADE;
 
 BEGIN;
@@ -4,9 +22,6 @@
 CREATE SCHEMA actor;
 COMMENT ON SCHEMA actor IS $$
 /*
- * Copyright (C) 2005  Georgia Public Library Service 
- * Mike Rylander <mrylander at gmail.com>
- *
  * Schema: actor
  *
  * Holds all tables pertaining to users and libraries (org units).

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/006.data.permissions.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/006.data.permissions.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/006.data.permissions.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,23 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007  Laurentian University
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ * Dan Scott <denials at gmail.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+
 INSERT INTO permission.perm_list VALUES (-1, 'EVERYTHING', NULL);
 INSERT INTO permission.perm_list VALUES (2, 'OPAC_LOGIN', NULL);
 INSERT INTO permission.perm_list VALUES (4, 'STAFF_LOGIN', NULL);

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/006.schema.permissions.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/006.schema.permissions.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/006.schema.permissions.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+
 DROP SCHEMA permission CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/010.schema.biblio.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/010.schema.biblio.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/010.schema.biblio.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 DROP SCHEMA biblio CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/011.schema.authority.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/011.schema.authority.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/011.schema.authority.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 DROP SCHEMA authority CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/020.schema.functions.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/020.schema.functions.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/020.schema.functions.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 CREATE OR REPLACE FUNCTION public.non_filing_normalize ( TEXT, "char" ) RETURNS TEXT AS $$
         SELECT  SUBSTRING(
                         REGEXP_REPLACE(

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/030.schema.metabib.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/030.schema.metabib.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/030.schema.metabib.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 DROP SCHEMA metabib CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/040.schema.asset.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/040.schema.asset.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/040.schema.asset.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 DROP SCHEMA asset CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/070.schema.container.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/070.schema.container.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/070.schema.container.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 DROP SCHEMA container CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/080.schema.money.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/080.schema.money.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/080.schema.money.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 DROP SCHEMA money CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/090.schema.action.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/090.schema.action.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/090.schema.action.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 DROP SCHEMA action CASCADE;
 
 BEGIN;

Added: branches/rel_1_2/Open-ILS/src/sql/Pg/1.2.2.1-1.2.2.2-upgrade-db.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/1.2.2.1-1.2.2.2-upgrade-db.sql	                        (rev 0)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/1.2.2.1-1.2.2.2-upgrade-db.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+BEGIN;
+
+CREATE SCHEMA extend_reporter;
+
+CREATE TABLE extend_reporter.legcay_circ_count (
+    id          BIGSERIAL   PRIMARY KEY REFERENCES asset.copy (id)
+    circ_count  INT         NOT NULL DEFAULT 0
+);
+
+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 "action".circulation circ ON circ.target_copy = c.id
+  GROUP BY cp.id;
+
+COMMIT;
+

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/300.schema.staged_search.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/300.schema.staged_search.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,4 +1,20 @@
+/*
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
 
+
 DROP SCHEMA search CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/500.view.cross-schema.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/500.view.cross-schema.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/500.view.cross-schema.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 BEGIN;
 
 CREATE OR REPLACE VIEW money.open_billable_xact_summary AS

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/800.fkeys.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/800.fkeys.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/800.fkeys.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Copyright (C) 2008  Laurentian University
+ * Mike Rylander <miker at esilibrary.com> 
+ * Dan Scott <denials at gmail.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 BEGIN;
 
 ALTER TABLE actor.usr ADD CONSTRAINT actor_usr_mailing_address_fkey FOREIGN KEY (mailing_address) REFERENCES actor.usr_address (id) DEFERRABLE INITIALLY DEFERRED;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/900.audit-functions.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/900.audit-functions.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/900.audit-functions.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 DROP SCHEMA auditor CASCADE;
 
 BEGIN;

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/901.audit-tables.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/901.audit-tables.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/901.audit-tables.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 BEGIN;
 
 SELECT auditor.create_auditor ( 'actor', 'usr' );

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/example.reporter-extension.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/example.reporter-extension.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/example.reporter-extension.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 BEGIN;
 
 CREATE OR REPLACE VIEW reporter.classic_current_circ AS

Added: branches/rel_1_2/Open-ILS/src/sql/Pg/extend-reporter.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/extend-reporter.sql	                        (rev 0)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/extend-reporter.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+DROP SCHEMA extend_reporter CASCADE;
+
+BEGIN;
+
+CREATE SCHEMA extend_reporter;
+
+CREATE TABLE extend_reporter.legcay_circ_count (
+    id          BIGSERIAL   PRIMARY KEY REFERENCES asset.copy (id)
+    circ_count  INT         NOT NULL DEFAULT 0
+);
+
+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 "action".circulation circ ON circ.target_copy = c.id
+  GROUP BY cp.id;
+
+COMMIT;
+

Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/reporter-schema.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/reporter-schema.sql	2008-06-13 17:27:15 UTC (rev 9829)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/reporter-schema.sql	2008-06-13 17:31:13 UTC (rev 9830)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2004-2008  Georgia Public Library Service
+ * Copyright (C) 2007-2008  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com> 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
 DROP SCHEMA reporter CASCADE;
 
 BEGIN;



More information about the open-ils-commits mailing list