function system_update_137 in Drupal 5
Same name and namespace in other branches
- 4 database/updates.inc \system_update_137()
File
- modules/
system/ system.install, line 1674
Code
function system_update_137() {
$ret = array();
if (!variable_get('update_137_done', FALSE)) {
if ($GLOBALS['db_type'] == 'mysql') {
$ret[] = update_sql("ALTER TABLE {locales_source} CHANGE location location varchar(255) NOT NULL default ''");
}
elseif ($GLOBALS['db_type'] == 'pgsql') {
db_change_column($ret, 'locales_source', 'location', 'location', 'varchar(255)', array(
'not null' => TRUE,
'default' => "''",
));
}
variable_del('update_137_done');
}
return $ret;
}