function spambot_schema in Spambot 6.3
Same name and namespace in other branches
- 8 spambot.install \spambot_schema()
- 7 spambot.install \spambot_schema()
Implementation of hook_schema().
File
- ./
spambot.install, line 6
Code
function spambot_schema() {
$schema = array();
$schema['node_spambot'] = array(
'description' => t('Node table to track author IP addresses. For use by spambot only.'),
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'hostname' => array(
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
),
),
'primary key' => array(
'nid',
),
'indexes' => array(
'uid' => array(
'uid',
),
),
);
return $schema;
}