function linkedin_schema in LinkedIn Integration 7
Same name and namespace in other branches
- 6 linkedin.install \linkedin_schema()
Implements hook_schema().
File
- ./
linkedin.install, line 12 - Install, update and uninstall functions for the linkedin module.
Code
function linkedin_schema() {
$schema['linkedin_token'] = array(
'description' => 'Tokens for request and services accesses.',
'fields' => array(
'uid' => array(
'description' => 'User ID from {user}.uid.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'token_key' => array(
'description' => 'Tokens for request and services accesses.',
'type' => 'varchar',
'length' => 100,
'not null' => TRUE,
),
'token_secret' => array(
'description' => 'Token "password".',
'type' => 'varchar',
'length' => 100,
'not null' => TRUE,
),
'type' => array(
'description' => 'Type of the token: request or access.',
'type' => 'varchar',
'length' => 7,
'not null' => TRUE,
),
),
'primary key' => array(
'uid',
),
'indexes' => array(
'token_key_type' => array(
'token_key',
),
),
);
return $schema;
}