You are here

function sms_user_update_1 in SMS Framework 6.2

Same name and namespace in other branches
  1. 5 modules/sms_user/sms_user.install \sms_user_update_1()
  2. 7 modules/sms_user/sms_user.install \sms_user_update_1()

Implementation of hook_update().

Drop the now dead delta field, and change primary key to number.

File

modules/sms_user/sms_user.install, line 34

Code

function sms_user_update_1() {
  $ret = array();
  db_drop_primary_key($ret, 'sms_user');
  db_add_primary_key($ret, 'sms_user', array(
    'number',
  ));
  db_add_index($ret, 'sms_user', 'uid', array(
    'uid',
  ));
  db_drop_field($ret, 'sms_user', 'delta');
  return $ret;
}