You are here

function _oauth_common_update_6202 in OAuth 1.0 6.3

This update allows for longer consumer secrets.

1 call to _oauth_common_update_6202()
oauth_common_update_6202 in ./oauth_common.install
Implementation of hook_update_N().

File

updates/update.6202.inc, line 6

Code

function _oauth_common_update_6202() {
  $ret = array();
  db_change_field($ret, 'oauth_common_consumer', 'consumer_key', 'consumer_key', array(
    'description' => t('Consumer key.'),
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
  ));
  db_change_field($ret, 'oauth_common_consumer', 'secret', 'secret', array(
    'description' => t('Consumer secret.'),
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
  ));
  db_change_field($ret, 'oauth_common_token', 'secret', 'secret', array(
    'description' => t('Consumer secret.'),
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
  ));
  db_change_field($ret, 'oauth_common_token', 'token_key', 'token_key', array(
    'description' => t('Token key.'),
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
  ));
  db_change_field($ret, 'oauth_common_token', 'consumer_key', 'consumer_key', array(
    'description' => t('Consumer key from {oauth_common_consumer}.consumer_key.'),
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
  ));
  return $ret;
}