View source
<?php
function feeds_oauth_schema() {
$schema = array();
$schema['feeds_oauth_access_tokens'] = array(
'description' => t('OAuth access tokens per user per site.'),
'fields' => array(
'uid' => array(
'description' => t('User identifier for this token.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'oauth_token' => array(
'description' => t('OAuth access token.'),
'type' => 'varchar',
'length' => '100',
'not null' => TRUE,
),
'oauth_token_secret' => array(
'description' => t('OAuth access token secret.'),
'type' => 'varchar',
'length' => '100',
'not null' => TRUE,
),
'site_id' => array(
'description' => t('Site identifier for this token.'),
'type' => 'varchar',
'length' => '50',
'not null' => TRUE,
),
),
'primary key' => array(
'uid',
'site_id',
),
);
return $schema;
}
function feeds_oauth_install() {
drupal_install_schema('feeds_oauth');
}
function feeds_oauth_uninstall() {
drupal_uninstall_schema('feeds_oauth');
}