summaryrefslogtreecommitdiff
path: root/modules/trigger/trigger.schema
diff options
context:
space:
mode:
Diffstat (limited to 'modules/trigger/trigger.schema')
-rw-r--r--modules/trigger/trigger.schema16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/trigger/trigger.schema b/modules/trigger/trigger.schema
new file mode 100644
index 000000000..d21069c1c
--- /dev/null
+++ b/modules/trigger/trigger.schema
@@ -0,0 +1,16 @@
+<?php
+// $Id$
+
+function trigger_schema() {
+ $schema['trigger_assignments'] = array(
+ 'fields' => array(
+ 'hook' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
+ 'op' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
+ 'aid' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
+ 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
+ ),
+ 'index keys' => array(
+ 'hook_op' => array('hook', 'op'))
+ );
+ return $schema;
+}