From: dbs Date: Thu, 22 Jan 2009 13:49:05 +0000 (+0000) Subject: Make fkey types compatible for PostgreSQL 8.3 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c137b536eabd2df269581a80c44fc4990275cf73;p=Evergreen.git Make fkey types compatible for PostgreSQL 8.3 git-svn-id: svn://svn.open-ils.org/ILS/trunk@11903 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql b/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql index b4f1ada422..e8f76de540 100644 --- a/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql +++ b/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql @@ -78,11 +78,11 @@ CREATE TABLE action_trigger.event_definition ( id SERIAL PRIMARY KEY, active BOOL NOT NULL DEFAULT TRUE, owner INT NOT NULL REFERENCES actor.org_unit (id), - hook INT NOT NULL REFERENCES action_trigger.hook (key), - validator INT NOT NULL REFERENCES action_trigger.validator (module), - reactor INT NOT NULL REFERENCES action_trigger.reactor (module), - cleanup_success INT REFERENCES action_trigger.cleanup (module), - cleanup_failure INT REFERENCES action_trigger.cleanup (module), + hook TEXT NOT NULL REFERENCES action_trigger.hook (key), + validator TEXT NOT NULL REFERENCES action_trigger.validator (module), + reactor TEXT NOT NULL REFERENCES action_trigger.reactor (module), + cleanup_success TEXT REFERENCES action_trigger.cleanup (module), + cleanup_failure TEXT REFERENCES action_trigger.cleanup (module), delay INTERVAL NOT NULL DEFAULT '5 minutes', 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.