function masquerade_update_6002 in Masquerade 6
Same name and namespace in other branches
- 7 masquerade.install \masquerade_update_6002()
Make the sid column match the length of the core sessions table (64 characters).
File
- ./
masquerade.install, line 111 - masquerade.install
Code
function masquerade_update_6002() {
$ret = array();
db_drop_index($ret, 'masquerade', 'sid');
db_drop_index($ret, 'masquerade', 'sid_2');
db_change_field($ret, 'masquerade', 'sid', 'sid', array(
'type' => 'varchar',
'length' => '64',
'not null' => TRUE,
'default' => '',
));
db_add_index($ret, 'masquerade', 'sid', array(
'sid',
'uid_from',
));
db_add_index($ret, 'masquerade', 'sid_2', array(
'sid',
'uid_as',
));
return $ret;
}