summaryrefslogtreecommitdiff
path: root/modules/trigger/trigger.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/trigger/trigger.install')
-rw-r--r--modules/trigger/trigger.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/trigger/trigger.install b/modules/trigger/trigger.install
index 13dd08ae1..14aaf2edd 100644
--- a/modules/trigger/trigger.install
+++ b/modules/trigger/trigger.install
@@ -19,3 +19,20 @@ function trigger_uninstall() {
// Remove tables.
drupal_uninstall_schema('trigger');
}
+
+/**
+ * Implementation of hook_schema().
+ */
+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),
+ ),
+ 'primary key' => array('hook', 'op', 'aid'),
+ );
+ return $schema;
+}
+