--- database.mysql.old	Mon May  2 22:48:36 2005
+++ database.mysql	Mon May  2 22:49:00 2005
@@ -316,7 +316,7 @@
 
 CREATE TABLE locales_source (
   lid int(11) NOT NULL auto_increment,
-  location varchar(256) NOT NULL default '',
+  location varchar(255) NOT NULL default '',
   source blob NOT NULL,
   PRIMARY KEY (lid)
 ) TYPE=MyISAM;
--- database.pgsql.old	Mon May  2 22:48:44 2005
+++ database.pgsql	Mon May  2 22:49:08 2005
@@ -318,7 +318,7 @@
 
 CREATE TABLE locales_source (
   lid SERIAL,
-  location varchar(256) NOT NULL default '',
+  location varchar(255) NOT NULL default '',
   source text NOT NULL,
   PRIMARY KEY  (lid)
 );
--- updates.inc.old	Mon May  2 22:44:44 2005
+++ updates.inc	Mon May  2 22:50:55 2005
@@ -105,7 +105,8 @@
   "2005-03-03" => "update_126",
   "2005-03-18" => "update_127",
   "2005-03-21" => "update_128",
-  "2005-04-14" => "update_129"
+  "2005-04-14" => "update_129",
+  "2005-05-02" => "update_130"
 );
 
 function update_32() {
@@ -2359,6 +2360,24 @@
      */
     include_once('modules/search.module');
     search_wipe();
+  }
+
+  return $ret;
+}
+
+function update_130() {
+  $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;
