=== modified file 'modules/path_redirect/path_redirect.install'
--- modules/path_redirect/path_redirect.install 2007-10-08 15:41:10 +0000
+++ modules/path_redirect/path_redirect.install 2007-10-08 15:52:10 +0000
@@ -64,7 +64,27 @@
   return $ret;
 }

+function path_redirect_update_3() {
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      $ret[] = update_sql("UPDATE {sequences} SET name = '{path_redirect}_rid' WHERE name = '{path_redirect}'");
+      break;
+  }
+  drupal_set_message(t('Database tables for the Path Redirect module have been updated.'));
+  return $ret;
+}
+
 function path_redirect_uninstall() {
   db_query('DROP TABLE {path_redirect}');
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      db_query("DELETE FROM {sequences} WHERE name = '{path_redirect}_rid'");
+      break;
+    case 'pgsql':
+      db_query("DROP SEQUENCE {path_redirect}_rid_seq");
+      break;
+  }
   drupal_set_message(t('Database tables for the Path Redirect module have been removed.'));
 }

=== modified file 'modules/path_redirect/path_redirect.module'
--- modules/path_redirect/path_redirect.module  2007-10-08 15:41:10 +0000
+++ modules/path_redirect/path_redirect.module  2007-10-08 15:44:08 +0000
@@ -288,7 +288,7 @@

 function path_redirect_save($edit) {
   if (!$edit['rid']) {
-    $edit['rid'] = db_next_id('{path_redirect}');
+    $edit['rid'] = db_next_id('{path_redirect}_rid');
   }
   else {
     path_redirect_delete_do($edit['rid']);
@@ -336,4 +336,4 @@
    );

    return $errors;
-}
\ No newline at end of file
+}
