From: dbs Date: Mon, 7 Jan 2008 00:34:25 +0000 (+0000) Subject: Correct integrity problem with acq schema seed data. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a97e215fdcbd2dd4c19d678dead10d2aa40f0b2f;p=Evergreen.git Correct integrity problem with acq schema seed data. 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 --- diff --git a/Open-ILS/src/sql/Pg/200.schema.acq.sql b/Open-ILS/src/sql/Pg/200.schema.acq.sql index 389f8cfb4d..0c1dec4edf 100644 --- a/Open-ILS/src/sql/Pg/200.schema.acq.sql +++ b/Open-ILS/src/sql/Pg/200.schema.acq.sql @@ -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 (