[open-ils-commits] r18750 - branches/rel_1_6_1/Open-ILS/src/sql/Pg (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Nov 15 17:32:10 EST 2010


Author: dbs
Date: 2010-11-15 17:32:04 -0500 (Mon, 15 Nov 2010)
New Revision: 18750

Modified:
   branches/rel_1_6_1/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
asset.uri needs a seed entry for queries of its ID values

To fix a problem with ingesting URIs, Ingest.pm was changed to reflect
the maximum asset.uri.id value rather than the asset.call_number.id
value. However, with no entries in asset.uri, the query returned a
NULL object which broke ingest entirely. Adding a seed entry avoids
this problem.


Modified: branches/rel_1_6_1/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- branches/rel_1_6_1/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2010-11-15 22:29:47 UTC (rev 18749)
+++ branches/rel_1_6_1/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2010-11-15 22:32:04 UTC (rev 18750)
@@ -2035,3 +2035,6 @@
 
 SELECT SETVAL('action_trigger.event_definition_id_seq'::TEXT, 100);
 
+-- Create seed data for the asset.uri table
+INSERT INTO asset.uri (id, href, active) VALUES (-1, 'http://example.com/fake', FALSE);
+



More information about the open-ils-commits mailing list