[open-ils-commits] r18751 - branches/rel_1_6_0/Open-ILS/src/sql/Pg (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 15 17:36:31 EST 2010
Author: dbs
Date: 2010-11-15 17:36:25 -0500 (Mon, 15 Nov 2010)
New Revision: 18751
Modified:
branches/rel_1_6_0/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_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- branches/rel_1_6_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-11-15 22:32:04 UTC (rev 18750)
+++ branches/rel_1_6_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-11-15 22:36:25 UTC (rev 18751)
@@ -1962,3 +1962,5 @@
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