You are here

function system_update_137 in Drupal 4

Same name and namespace in other branches
  1. 5 modules/system/system.install \system_update_137()

File

database/updates.inc, line 564

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;
}