function nat_schema in Node Auto Term [NAT] 6
Same name and namespace in other branches
- 6.2 nat.install \nat_schema()
- 7.2 nat.install \nat_schema()
- 7 nat.install \nat_schema()
Implementation of hook_install().
File
- ./
nat.install, line 21
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;
}