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

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jan 4 21:54:08 EST 2008


Author: miker
Date: 2008-01-04 21:30:11 -0500 (Fri, 04 Jan 2008)
New Revision: 8324

Modified:
   branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
adding missing (overlooked, somehow) fund fkeys

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-04 22:13:33 UTC (rev 8323)
+++ branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql	2008-01-05 02:30:11 UTC (rev 8324)
@@ -56,12 +56,14 @@
 
 CREATE TABLE acq.fund_credit (
 	id	SERIAL	PRIMARY KEY,
+    fund    INT     NOT NULL REFERENCES acq.fund (id),
 	amount	NUMERIC	NOT NULL,
 	note	TEXT
 );
 
 CREATE TABLE acq.fund_debit (
 	id			SERIAL	PRIMARY KEY,
+    fund    INT     NOT NULL REFERENCES acq.fund (id),
 	origin_amount		NUMERIC	NOT NULL,  -- pre-exchange-rate amount
 	origin_currency_type	TEXT	NOT NULL REFERENCES acq.currency_type (code),
 	amount			NUMERIC	NOT NULL,



More information about the open-ils-commits mailing list