| 5 update.php |
update_fix_access_table() |
File
- ./update.php, line 612
- Administrative page for handling updates from one Drupal version to another.
Code
function update_fix_access_table() {
if (variable_get('update_access_fixed', FALSE)) {
return;
}
switch ($GLOBALS['db_type']) {
case 'mysqli':
break;
case 'mysql':
if (version_compare(mysql_get_server_info($GLOBALS['active_db']), '4.1.0', '<')) {
return;
}
break;
case 'pgsql':
return;
}
$result = db_fetch_array(db_query('SHOW CREATE TABLE {access}'));
if (!preg_match('/utf8/i', array_pop($result))) {
update_convert_table_utf8('access');
}
variable_set('update_access_fixed', TRUE);
}
Login or
register to post comments