You are here

function feeds_oauth_update_7001 in Feeds OAuth 7

Add extra columns to 'feeds_oauth_access_token' for OAuth 2.0.

File

./feeds_oauth.install, line 105
Install schema and updates.

Code

function feeds_oauth_update_7001() {
  db_add_field('feeds_oauth_access_tokens', 'timestamp', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
    'initial' => time(),
  ));
  db_add_field('feeds_oauth_access_tokens', 'expires', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_field('feeds_oauth_access_tokens', 'oauth_refresh_token', array(
    'description' => t('OAuth refresh token.'),
    'type' => 'varchar',
    'length' => '100',
    'not null' => TRUE,
  ));
}