summaryrefslogtreecommitdiff
path: root/modules/trigger/trigger.schema
blob: d21069c1cf30a770de7ab91aba6086132f0a9850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}