function sms_update_1 in SMS Framework 6.2
Same name and namespace in other branches
- 5 sms.install \sms_update_1()
Implements hook_update().
Drop the now dead delta field, and change primary key to number.
File
- ./
sms.install, line 35 - Install, update and uninstall functions for the smsframework module.
Code
function sms_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;
}