From: dbs Date: Mon, 15 Nov 2010 22:32:04 +0000 (+0000) Subject: asset.uri needs a seed entry for queries of its ID values X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7002007fdeca2c4e9441ff27146304d76b11485f;p=working%2FEvergreen.git 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_1@18750 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 d72ca6d1c7..4484b384eb 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2035,3 +2035,6 @@ INSERT INTO action_trigger.environment ( event_def, path) VALUES 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); +