[open-ils-commits] r8339 - branches/acq-experiment/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Jan 6 19:58:37 EST 2008


Author: dbs
Date: 2008-01-06 19:34:25 -0500 (Sun, 06 Jan 2008)
New Revision: 8339

Modified:
   branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
Correct integrity problem with acq schema seed data.
Point to an authoritative source for currency abbreviations.


Modified: branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql	2008-01-07 00:32:39 UTC (rev 8338)
+++ branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql	2008-01-07 00:34:25 UTC (rev 8339)
@@ -9,6 +9,7 @@
 	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 @@
 	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 (



More information about the open-ils-commits mailing list