Index: updates.inc =================================================================== RCS file: /cvs/drupal/drupal/database/updates.inc,v retrieving revision 1.84 diff -u -r1.84 updates.inc --- updates.inc 24 Jan 2005 21:17:58 -0000 1.84 +++ updates.inc 25 Jan 2005 04:02:34 -0000 @@ -2142,6 +2142,22 @@ return $ret; } +function update_120() { + /** + * Works for both PostgreSQL and MySQL + */ + $result = db_query("SELECT pid, src FROM {url_alias} WHERE src LIKE 'blog/%%'"); + while ($alias = db_fetch_object($result)) { + list(, $page, $op, $uid) = explode('/', $alias->src); + if ($page == 'feed') { + $new = "blog/$uid/feed"; + db_query("UPDATE {url_alias} SET src = '%s' WHERE pid = '%s'", $new, $alias->pid); + } + } + + return array(); +} + function update_sql($sql) { $edit = $_POST["edit"]; $result = db_query($sql);