function locale_update_6001
6.x locale.install | locale_update_6001() |
Change locale column to language. The language column is added by update_fix_d6_requirements() in update.php to avoid a large number of error messages from update.php. All we need to do here is copy locale to language and then drop locale.
Related topics
File
- drupal-6.x/
modules/ locale/ locale.install, line 122
Code
function locale_update_6001() {
$ret = array();
$ret[] = update_sql('UPDATE {locales_target} SET language = locale');
db_drop_field($ret, 'locales_target', 'locale');
return $ret;
}