From 80d0396920cc312c61380c4e1883ee1e1cba4b5d Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 15 Nov 2010 22:29:47 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@18749 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 8bc27112c4..a484c11396 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2072,3 +2072,5 @@ INSERT INTO action_trigger.event_definition ( ) ; +-- Create seed data for the asset.uri table +INSERT INTO asset.uri (id, href, active) VALUES (-1, 'http://example.com/fake', FALSE); -- 2.11.0