Index: updates.inc =================================================================== RCS file: /cvs/drupal/drupal/database/updates.inc,v retrieving revision 1.114 diff -u -F^f -r1.114 updates.inc --- updates.inc 6 May 2005 06:43:30 -0000 1.114 +++ updates.inc 6 May 2005 21:35:46 -0000 @@ -111,7 +111,8 @@ "2005-04-14" => "update_132", "2005-04-24" => "update_133", "2005-04-30" => "update_134", - "2005-05-06" => "update_135" + "2005-05-02" => "update_135", + "2005-05-06" => "update_136" ); function update_32() { @@ -2439,6 +2440,23 @@ function update_134() { } function update_135() { + $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_136() { $result = db_query("SELECT delta FROM {blocks} WHERE module = 'aggregator'"); while ($block = db_fetch_object($result)) { list($type, $id) = explode(':', $block->delta);