function oauth_common_update_7101 in OAuth 1.0 7.3
Add callback_url field to {oauth_common_token} table.
File
- ./
oauth_common.install, line 398 - Installation and schema related functions for the OAuth module
Code
function oauth_common_update_7101() {
// Drop the wrongly created field.
if (db_field_exists('oauth_common_token', 'callback_url')) {
db_drop_field('oauth_common_token', 'callback_url');
}
$spec = array(
'description' => 'Callback URL.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
);
db_add_field('oauth_common_token', 'callback_url', $spec);
}