function twitter_block_schema in Twitter Block 7.2
Same name and namespace in other branches
- 6 twitter_block.install \twitter_block_schema()
- 7 twitter_block.install \twitter_block_schema()
Implements hook_schema().
File
- ./
twitter_block.install, line 11 - Install, update and uninstall functions for the twitter_block module.
Code
function twitter_block_schema() {
$schema['twitter_block'] = array(
'description' => 'The table for storing twitter blocks.',
'fields' => array(
'bid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => "The block's {block}.bid.",
),
'info' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Block description.',
),
'widget_id' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Widget ID.',
),
'username' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Account username.',
),
'data' => array(
'type' => 'blob',
'size' => 'big',
'not null' => TRUE,
'serialize' => TRUE,
'description' => 'Serialized data containing the timeline properties.',
),
),
'unique keys' => array(
'info' => array(
'info',
),
'widget_id' => array(
'widget_id',
),
),
'primary key' => array(
'bid',
),
);
return $schema;
}