function statistics_update_1000 in Drupal 6
Same name and namespace in other branches
- 5 modules/statistics/statistics.install \statistics_update_1000()
Changes session ID field to VARCHAR(64) to add support for SHA-1 hashes.
File
- modules/
statistics/ statistics.install, line 14
Code
function statistics_update_1000() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {accesslog} CHANGE COLUMN sid sid varchar(64) NOT NULL default ''");
break;
case 'pgsql':
db_change_column($ret, 'accesslog', 'sid', 'sid', 'varchar(64)', array(
'not null' => TRUE,
'default' => "''",
));
break;
}
return $ret;
}