From 589563978ab8fae888d9fa82f3409d3e316f6e42 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 28 Oct 2009 21:22:32 +0000 Subject: [PATCH] patch from Joe Atzberger to add a SAN (Standard Address Number) to the ACQ provider table. next up, the IDL entries. git-svn-id: svn://svn.open-ils.org/ILS/trunk@14658 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/200.schema.acq.sql | 1 + Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 414f6588b8..78e0577e7f 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0059'); -- miker +INSERT INTO config.upgrade_log (version) VALUES ('0060'); -- atz CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/200.schema.acq.sql b/Open-ILS/src/sql/Pg/200.schema.acq.sql index 80c20cfb4d..4192e76de2 100644 --- a/Open-ILS/src/sql/Pg/200.schema.acq.sql +++ b/Open-ILS/src/sql/Pg/200.schema.acq.sql @@ -36,6 +36,7 @@ CREATE TABLE acq.provider ( currency_type TEXT NOT NULL REFERENCES acq.currency_type (code) DEFERRABLE INITIALLY DEFERRED, code TEXT NOT NULL, holding_tag TEXT, + san INT, CONSTRAINT provider_name_once_per_owner UNIQUE (name,owner), CONSTRAINT code_once_per_owner UNIQUE (code, owner) ); diff --git a/Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql b/Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql new file mode 100644 index 0000000000..4021729c0b --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql @@ -0,0 +1,11 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0060'); + +-- Add a san column for EDI. +-- See: http://isbn.org/standards/home/isbn/us/san/san-qa.asp + +ALTER TABLE acq.provider ADD COLUMN san INT; + +COMMIT; + -- 2.11.0