function sexybookmarks_schema in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.2
Same name and namespace in other branches
- 7 sexybookmarks.install \sexybookmarks_schema()
Implements hook_schema().
File
- ./
sexybookmarks.install, line 10 - Install, update and uninstall functions for the SexyBookmarks module.
Code
function sexybookmarks_schema() {
$schema = array();
$schema['sexybookmarks_profiles'] = array(
'export' => array(
'key' => 'name',
'key name' => 'Name',
'primary key' => 'name',
'identifier' => 'profile',
'default hook' => 'default_sexybookmarks_profile',
'api' => array(
'owner' => 'sexybookmarks',
'api' => 'default_sexybookmarks_profiles',
'minimum_version' => 2,
'current_version' => 2,
),
),
'fields' => array(
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => '',
),
'config' => array(
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
'serialize' => TRUE,
'description' => '',
),
),
'unique keys' => array(
'name' => array(
'name',
),
),
'primary key' => array(
'name',
),
);
return $schema;
}