function comment_alter_schema in Comment Alter 7
Same name and namespace in other branches
- 8 comment_alter.install \comment_alter_schema()
Implements hook_schema().
File
- ./
comment_alter.install, line 11 - Un/install functions for Comment alter.
Code
function comment_alter_schema() {
$schema['comment_alter'] = array(
'description' => 'Stores {node}.vid changes made by comments.',
'fields' => array(
'cid' => array(
'description' => 'The {comment}.cid this change refers to.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'old_vid' => array(
'description' => 'The old {node}.vid this change refers to.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'new_vid' => array(
'description' => 'The new {node}.vid this change refers to.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'new_vid' => array(
'new_vid',
),
'old_vid' => array(
'old_vid',
),
),
'primary key' => array(
'cid',
),
);
return $schema;
}