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