You are here

function feeds_oauth_schema in Feeds OAuth 6

Same name and namespace in other branches
  1. 7 feeds_oauth.install \feeds_oauth_schema()

Implementation of hook_schema().

File

./feeds_oauth.install, line 6

Code

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;
}