[open-ils-commits] r18749 - branches/rel_1_6/Open-ILS/src/sql/Pg (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 15 17:29:53 EST 2010
Author: dbs
Date: 2010-11-15 17:29:47 -0500 (Mon, 15 Nov 2010)
New Revision: 18749
Modified:
branches/rel_1_6/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/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-11-15 20:26:44 UTC (rev 18748)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-11-15 22:29:47 UTC (rev 18749)
@@ -2072,3 +2072,5 @@
)
;
+-- 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