summaryrefslogtreecommitdiff
path: root/modules/actions/actions.schema
diff options
context:
space:
mode:
Diffstat (limited to 'modules/actions/actions.schema')
-rw-r--r--modules/actions/actions.schema26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/actions/actions.schema b/modules/actions/actions.schema
new file mode 100644
index 000000000..2e2ca9b28
--- /dev/null
+++ b/modules/actions/actions.schema
@@ -0,0 +1,26 @@
+<?php
+// $Id$
+
+function actions_schema() {
+ $schema['actions'] = array(
+ 'fields' => array(
+ 'aid' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '0'),
+ 'type' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
+ 'callback' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
+ 'parameters' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big', 'default' => ''),
+ 'description' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '0'),
+ ),
+ 'primary key' => array('aid'),
+ );
+ $schema['actions_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;
+}