From a56d95c3218ed1a4c78434430df3206e752c1a54 Mon Sep 17 00:00:00 2001 From: berick Date: Fri, 20 May 2011 17:06:05 -0400 Subject: [PATCH] Track import time and target copy on import items Added import_time and imported_as columns to vandelay.import_item For you branch trackers: ALTER TABLE vandelay.import_item ADD import_time TIMESTAMP WITH TIME ZONE; ALTER TABLE vandelay.import_item ADD imported_as BIGINT REFERENCES asset.copy (id) DEFERRABLE INITIALLY DEFERRED; --- Open-ILS/examples/fm_IDL.xml | 3 +++ Open-ILS/src/sql/Pg/012.schema.vandelay.sql | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 06cf384ec9..27cdcd7cfa 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -189,6 +189,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + @@ -213,6 +215,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + diff --git a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql index d461d4fd87..9a5c3efa90 100644 --- a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql +++ b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql @@ -153,6 +153,8 @@ CREATE TABLE vandelay.import_item ( definition BIGINT NOT NULL REFERENCES vandelay.import_item_attr_definition (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, import_error TEXT REFERENCES vandelay.import_error (code) ON DELETE SET NULL ON UPDATE CASCADE DEFERRABLE INITIALLY DEFERRED, error_detail TEXT, + imported_as BIGINT REFERENCES asset.copy (id) DEFERRABLE INITIALLY DEFERRED, + import_time TIMESTAMP WITH TIME ZONE, owning_lib INT, circ_lib INT, call_number TEXT, -- 2.11.0