From: berick Date: Fri, 20 May 2011 21:06:05 +0000 (-0400) Subject: Track import time and target copy on import items X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bdbc17483955db34804b4058bc33fc1a1e437a61;p=evergreen%2Fequinox.git 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; --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index e5d12ef8d6..f6be7a4ace 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 5fae96d24f..d58834d720 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,