[open-ils-commits] r11903 - trunk/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 22 08:49:06 EST 2009


Author: dbs
Date: 2009-01-22 08:49:05 -0500 (Thu, 22 Jan 2009)
New Revision: 11903

Modified:
   trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
Log:
Make fkey types compatible for PostgreSQL 8.3


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 13:26:05 UTC (rev 11902)
+++ trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql	2009-01-22 13:49:05 UTC (rev 11903)
@@ -78,11 +78,11 @@
     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.



More information about the open-ils-commits mailing list