patch from Joe Atzberger to add a SAN (Standard Address Number) to the ACQ provider...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Oct 2009 21:22:32 +0000 (21:22 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Oct 2009 21:22:32 +0000 (21:22 +0000)
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
Open-ILS/src/sql/Pg/200.schema.acq.sql
Open-ILS/src/sql/Pg/upgrade/0060.schema.provider_SAN.sql [new file with mode: 0644]

index 414f658..78e0577 100644 (file)
@@ -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,
index 80c20cf..4192e76 100644 (file)
@@ -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 (file)
index 0000000..4021729
--- /dev/null
@@ -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;
+