That way they can accommodate deallocations, where we move money out of a
fund without moving it into another fund.
A upgrade/0135.schema.acq.fund_transfer_nulls.sql
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15323
dcc99617-32d9-48b4-a31d-
7c20da2025e4
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0135'); -- Scott McKellar
+
+-- Make dest_fund and dest_amount nullable in order to accommodate
+-- deallocations; i.e. when we move money out of a fund without
+-- putting it into some other fund.
+
+ALTER TABLE acq.fund_transfer
+ ALTER COLUMN dest_fund DROP NOT NULL;
+
+ALTER TABLE acq.fund_transfer
+ ALTER COLUMN dest_amount DROP NOT NULL;
+
+COMMIT;