Index: includes/update.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/update.inc,v
retrieving revision 1.51
diff -u -p -r1.51 update.inc
--- includes/update.inc	26 May 2010 19:51:01 -0000	1.51
+++ includes/update.inc	7 Jun 2010 15:32:43 -0000
@@ -478,7 +478,15 @@ function update_fix_d7_requirements() {
     );
 
     db_create_table('date_format_type', $schema['date_format_type']);
+    // Sites that have the Drupal 6 Date module installed already have the
+    // following tables.
+    if (db_table_exists('date_formats')) {
+      db_rename_table('date_formats', 'd6_date_formats');
+    }
     db_create_table('date_formats', $schema['date_formats']);
+    if (db_table_exists('date_format_locale')) {
+      db_rename_table('date_format_locale', 'd6_date_format_locale');
+    }
     db_create_table('date_format_locale', $schema['date_format_locale']);
 
     // Add the queue table.
