summaryrefslogtreecommitdiff
path: root/modules/trigger/trigger.schema
blob: 1b06b97d3e01d44b9d8b9150a7df13f9f5dd67fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?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),
    ),
    'primary key' => array('hook', 'op', 'aid'),
  );
  return $schema;
}