--- updates.inc.old	Fri May  6 08:46:19 2005
+++ updates.inc	Sat May  7 02:29:09 2005
@@ -106,7 +106,8 @@
   "2005-03-18" => "update_127",
   "2005-03-21" => "update_128",
   "2005-04-14" => "update_129",
-  "2005-05-06" => "update_130"
+  "2005-05-06" => "update_130",
+  "2005-05-07" => "update_131"
 );
 
 function update_32() {
@@ -2372,6 +2373,24 @@
     db_query("UPDATE {blocks} SET delta = '%s' WHERE module = 'aggregator' AND delta = '%s'", $type .'-'. $id, $block->delta);
   }
   return array();
+}
+
+function update_131() {
+  $ret = array();
+
+  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') {
+    $ret[] = update_sql("ALTER TABLE {locales_source} RENAME location TO location_old");
+    $ret[] = update_sql("ALTER TABLE {locales_source} ADD location varchar(255)");
+    $ret[] = update_sql("ALTER TABLE {locales_source} ALTER location SET NOT NULL");
+    $ret[] = update_sql("ALTER TABLE {locales_source} ALTER location SET DEFAULT ''");
+    $ret[] = update_sql("UPDATE {locales_source} SET location = location_old");
+    $ret[] = update_sql("ALTER TABLE {locales_source} DROP location_old");
+  }
+
+  return $ret;
 }
 
 function update_sql($sql) {
