function block_revisions_schema_alter in Block Revisions 7
Same name and namespace in other branches
- 6 block_revisions.install \block_revisions_schema_alter()
Implements hook_schema_alter().
Alters the schema for the {block_custom} table, adding two extra columns.
File
- ./
block_revisions.install, line 85 - Installation routines for the Block Revisions module.
Code
function block_revisions_schema_alter(&$schema) {
$schema['block_custom']['fields']['uid'] = array(
'description' => 'The {users}.uid of the user that created or updated this block.',
'type' => 'int',
'not null' => FALSE,
);
$schema['block_custom']['fields']['timestamp'] = array(
'description' => 'A Unix timestamp indicating when this block was last updated.',
'type' => 'int',
'not null' => FALSE,
);
}