function feeds_oauth_schema in Feeds OAuth 7
Same name and namespace in other branches
- 6 feeds_oauth.install \feeds_oauth_schema()
Implements hook_schema().
1 call to feeds_oauth_schema()
- feeds_oauth_update_7003 in ./
feeds_oauth.install - Enlarge size of oauth_token and oauth_token_secret.
File
- ./
feeds_oauth.install, line 47 - Install schema and updates.
Code
function feeds_oauth_schema() {
$schema = array();
$schema['feeds_oauth_access_tokens'] = array(
'description' => 'OAuth access tokens per user per site.',
'fields' => array(
'uid' => array(
'description' => 'User identifier for this token.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'oauth_token' => array(
'description' => 'OAuth access token.',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'oauth_token_secret' => array(
'description' => 'OAuth access token secret.',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'site_id' => array(
'description' => 'Site identifier for this token.',
'type' => 'varchar',
'length' => '50',
'not null' => TRUE,
),
'timestamp' => array(
'description' => 'The UNIX timestamp when this token was created.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'expires' => array(
'description' => 'The UNIX timestamp when this token will expire.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'oauth_refresh_token' => array(
'description' => 'OAuth refresh token.',
'type' => 'varchar',
'length' => '100',
'not null' => TRUE,
),
),
'primary key' => array(
'uid',
'site_id',
),
);
return $schema;
}