function google_calendar_block_schema in Google Calendar Block 7
Same name and namespace in other branches
- 7.2 google_calendar_block.install \google_calendar_block_schema()
Implements hook_schema().
File
- ./
google_calendar_block.install, line 40 - Install, update and uninstall functions for the google_calendar_block module.
Code
function google_calendar_block_schema() {
$schema['google_calendar_block'] = array(
'description' => 'The table for storing Google Calendar 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.',
),
'calendar_user' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Calendar user.',
),
'calendar_visibility' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Calendar visibility.',
),
'data' => array(
'type' => 'blob',
'size' => 'big',
'not null' => TRUE,
'serialize' => TRUE,
'description' => 'Serialized data containing the calendar properties.',
),
),
'unique keys' => array(
'info' => array(
'info',
),
'calendar_visibility' => array(
'calendar_visibility',
),
),
'primary key' => array(
'bid',
),
);
$schema['cache_google_calendar_block'] = drupal_get_schema_unprocessed('system', 'cache');
return $schema;
}