[open-ils-commits] r12948 - trunk/Open-ILS/src/sql/Pg (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 21 15:30:00 EDT 2009
Author: scottmk
Date: 2009-04-21 15:29:55 -0400 (Tue, 21 Apr 2009)
New Revision: 12948
Modified:
trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
Added create_time columns to acq.fund_debit and acq.fund_allocation.
Modified: trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2009-04-21 18:49:41 UTC (rev 12947)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2009-04-21 19:29:55 UTC (rev 12948)
@@ -119,7 +119,8 @@
amount NUMERIC NOT NULL,
encumbrance BOOL NOT NULL DEFAULT TRUE,
debit_type TEXT NOT NULL,
- xfer_destination INT REFERENCES acq.fund (id) DEFERRABLE INITIALLY DEFERRED
+ xfer_destination INT REFERENCES acq.fund (id) DEFERRABLE INITIALLY DEFERRED,
+ create_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
CREATE TABLE acq.fund_allocation (
@@ -130,6 +131,7 @@
percent NUMERIC CHECK (percent IS NULL OR percent BETWEEN 0.0 AND 100.0),
allocator INT NOT NULL REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED,
note TEXT,
+ create_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
CONSTRAINT allocation_amount_or_percent CHECK ((percent IS NULL AND amount IS NOT NULL) OR (percent IS NOT NULL AND amount IS NULL))
);
More information about the open-ils-commits
mailing list