You are here

function services_keyauth_update_6003 in Services 6.2

Same name and namespace in other branches
  1. 7 auth/services_keyauth/services_keyauth.install \services_keyauth_update_6003()

File

auth/services_keyauth/services_keyauth.install, line 163
Install, uninstall and update the module.

Code

function services_keyauth_update_6003() {
  $update = array();
  db_drop_index($update, 'services_timestamp_nonce', 'timestamp');
  db_change_field($update, 'services_timestamp_nonce', 'timestamp', 'timestamp', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_index($update, 'services_timestamp_nonce', 'timestamp', array(
    'timestamp',
  ));
  return $update;
}