function apachesolr_exclude_node_schema in Apache Solr Exclude Node 6
Same name and namespace in other branches
- 7 apachesolr_exclude_node.install \apachesolr_exclude_node_schema()
Implements hook_schema().
File
- ./
apachesolr_exclude_node.install, line 11 - Install file for the Apache Solr Exclude Node module.
Code
function apachesolr_exclude_node_schema() {
return array(
'apachesolr_exclude_node' => array(
'description' => 'The main table holding info about excluded nodes.',
'fields' => array(
'nid' => array(
'description' => 'The foreign key to node.nid',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'vid' => array(
'description' => 'The foreign key to node.vid',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'exclude' => array(
'description' => 'Exclude status. 0 = no, 1 = yes',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'nid' => array(
'nid',
),
),
'primary key' => array(
'vid',
),
),
);
}