[open-ils-commits] r12747 - trunk/Open-ILS/src/sql/Pg (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Apr 1 07:08:08 EDT 2009


Author: miker
Date: 2009-04-01 07:08:08 -0400 (Wed, 01 Apr 2009)
New Revision: 12747

Modified:
   trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
Log:
reordering table due to fkey

Modified: trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql	2009-03-31 21:37:50 UTC (rev 12746)
+++ trunk/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql	2009-04-01 11:08:08 UTC (rev 12747)
@@ -120,6 +120,12 @@
     CONSTRAINT env_event_label_once UNIQUE (event_def,label)
 );
 
+CREATE TABLE action_trigger.event_output (
+    id              BIGSERIAL   PRIMARY KEY,
+    create_time     TIMESTAMPTZ NOT NULL DEFAULT NOW(),
+    data            TEXT        NOT NULL
+);
+
 CREATE TABLE action_trigger.event (
     id              BIGSERIAL   PRIMARY KEY,
     target          BIGINT      NOT NULL, -- points at the id from class defined by event_def.hook.core_type
@@ -135,12 +141,6 @@
     error_output    TEXT
 );
 
-CREATE TABLE action_trigger.event_output (
-    id              BIGSERIAL   PRIMARY KEY,
-    create_time     TIMESTAMPTZ NOT NULL DEFAULT NOW(),
-    data            TEXT        NOT NULL
-);
-
 CREATE TABLE action_trigger.event_params (
     id          BIGSERIAL   PRIMARY KEY,
     event_def   INT         NOT NULL REFERENCES action_trigger.event_definition (id) DEFERRABLE INITIALLY DEFERRED,



More information about the open-ils-commits mailing list