Correct integrity problem with acq schema seed data.
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Jan 2008 00:34:25 +0000 (00:34 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Jan 2008 00:34:25 +0000 (00:34 +0000)
Point to an authoritative source for currency abbreviations.

git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8339 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/200.schema.acq.sql

index 389f8cf..0c1dec4 100644 (file)
@@ -9,6 +9,7 @@ CREATE TABLE acq.currency_type (
        label   TEXT
 );
 
+-- Use the ISO 4217 abbreviations for currency codes
 INSERT INTO acq.currency_type (code, label) VALUES ('USD','US Dollars');
 INSERT INTO acq.currency_type (code, label) VALUES ('CAD','Canadian Dollars');
 INSERT INTO acq.currency_type (code, label) VALUES ('EUR','Euros');
@@ -21,7 +22,7 @@ CREATE TABLE acq.exchange_rate (
        CONSTRAINT exchange_rate_from_to_once UNIQUE (from_currency,to_currency)
 );
 
-INSERT INTO acq.exchange_rate (from_currency,to_currency,ratio) VALUES ('USD','CAN',1.2);
+INSERT INTO acq.exchange_rate (from_currency,to_currency,ratio) VALUES ('USD','CAD',1.2);
 INSERT INTO acq.exchange_rate (from_currency,to_currency,ratio) VALUES ('USD','EUR',0.5);
 
 CREATE TABLE acq.provider (