[open-ils-commits] r17885 - branches/rel_2_0/Open-ILS/src/sql/Pg (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 22 08:55:27 EDT 2010
Author: scottmk
Date: 2010-09-22 08:55:26 -0400 (Wed, 22 Sep 2010)
New Revision: 17885
Modified:
branches/rel_2_0/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
In acq.fund_transfer: drop the NOT NULL constraint from dest_fund and
dest_amount, in order to accommodate deallocations -- where we move
money out of a fund without moving it into another fund.
This change was applied via upgrade script # 0135, but apparently was
never applied to the base installation script.
M Open-ILS/src/sql/Pg/200.schema.acq.sql
Modified: branches/rel_2_0/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-09-22 02:13:21 UTC (rev 17884)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-09-22 12:55:26 UTC (rev 17885)
@@ -673,9 +673,9 @@
src_fund INT NOT NULL REFERENCES acq.fund( id )
DEFERRABLE INITIALLY DEFERRED,
src_amount NUMERIC NOT NULL,
- dest_fund INT NOT NULL REFERENCES acq.fund( id )
+ dest_fund INT REFERENCES acq.fund( id )
DEFERRABLE INITIALLY DEFERRED,
- dest_amount NUMERIC NOT NULL,
+ dest_amount NUMERIC,
transfer_time TIMESTAMPTZ NOT NULL DEFAULT now(),
transfer_user INT NOT NULL REFERENCES actor.usr( id )
DEFERRABLE INITIALLY DEFERRED,
More information about the open-ils-commits
mailing list