function nat_schema in Node Auto Term [NAT] 7
Same name and namespace in other branches
- 6.2 nat.install \nat_schema()
- 6 nat.install \nat_schema()
- 7.2 nat.install \nat_schema()
Implements hook_install().
File
- ./
nat.install, line 19
Code
function nat_schema() {
$schema['nat'] = array(
'description' => 'NAT module: establish relationship between nids and tids.',
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Index: Node ID.',
),
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Term ID.',
),
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Vocabulary ID.',
),
),
'indexes' => array(
'nid' => array(
'nid',
),
),
);
return $schema;
}