function masquerade_update_5001 in Masquerade 5
Match the 64 character length of the sessions table.
File
- ./
masquerade.install, line 74 - masquerade.install
Code
function masquerade_update_5001() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {masquerade} CHANGE `sid` `sid` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default ''");
break;
case 'pgsql':
$ret[] = update_sql("ALTER TABLE {masquerade} ALTER COLUMN sid TYPE VARCHAR(64)");
break;
}
return $ret;
}