[open-ils-commits] r14658 - in trunk/Open-ILS/src/sql/Pg: . upgrade (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 28 17:22:38 EDT 2009
Author: erickson
Date: 2009-10-28 17:22:32 -0400 (Wed, 28 Oct 2009)
New Revision: 14658
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
patch from Joe Atzberger to add a SAN (Standard Address Number) to the ACQ provider table. next up, the IDL entries.
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-10-28 20:51:13 UTC (rev 14657)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-10-28 21:22:32 UTC (rev 14658)
@@ -51,7 +51,7 @@
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,
Modified: trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2009-10-28 20:51:13 UTC (rev 14657)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2009-10-28 21:22:32 UTC (rev 14658)
@@ -36,6 +36,7 @@
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)
);
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql 2009-10-28 21:22:32 UTC (rev 14658)
@@ -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;
+
More information about the open-ils-commits
mailing list