[open-ils-commits] r11902 - trunk/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 22 08:26:06 EST 2009
Author: miker
Date: 2009-01-22 08:26:05 -0500 (Thu, 22 Jan 2009)
New Revision: 11902
Modified:
trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
Log:
syntax issues and typos spotted by Dan
Modified: trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql 2009-01-22 05:46:05 UTC (rev 11901)
+++ trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql 2009-01-22 13:26:05 UTC (rev 11902)
@@ -87,7 +87,8 @@
delay_field TEXT, -- for instance, xact_start on a circ hook ... look for fields on hook.core_type where datatype=timestamp? If not set, delay from now()
group_field TEXT, -- field from this.hook.core_type to batch event targets together on, fed into reactor a group at a time.
template TEXT NOT NULL, -- the TT block. will have an 'environment' hash (or array of hashes, grouped events) built up by validator and collector(s), which can be modified.
- CONSTRAINT ev_def_owner_hook_val_react_clean_delay_once UNIQUE (owner, hook, validator, reactor, cleanup, delay, delay_field)
+ CONSTRAINT ev_def_owner_hook_val_react_clean_delay_once UNIQUE (owner, hook, validator, reactor, delay, delay_field)
+);
CREATE TABLE action_trigger.environment (
id SERIAL PRIMARY KEY,
@@ -111,7 +112,7 @@
update_time TIMESTAMPTZ,
complete_time TIMESTAMPTZ,
update_process INT,
- state TEXT NOT NULL DEFAULT 'pending' CHECK (state IN ('pending','found','collecting','validating','reacting','cleanup','complete','error'))
+ state TEXT NOT NULL DEFAULT 'pending' CHECK (state IN ('pending','found','collecting','validating','reacting','cleanup','complete','error')),
template_output TEXT,
error_output TEXT
);
@@ -124,5 +125,5 @@
CONSTRAINT event_params_event_def_param_once UNIQUE (event_def,param)
);
-COMMIT;
+--COMMIT;
More information about the open-ils-commits
mailing list