commit 002e4c6126878f6bf41158b37ad86f68bb4704f1 Author: Aegir sandbox Date: Fri Feb 19 17:14:10 2010 -0500 #719730 - fix queue and sequence tables upgrades from D5 diff --git includes/update.inc includes/update.inc index 70861a6..c2d4f76 100644 --- includes/update.inc +++ includes/update.inc @@ -527,6 +527,13 @@ function update_fix_d7_requirements() { 'expire' => array('expire'), ), ); + // Check for queue table that may remain from a D5 insatll, if found rename + // it, it has a different schema than D7 but could be useful for upgrading + // modules. + if (db_table_exists('queue')) { + db_rename_table('queue', 'queue_old'); + } + db_create_table('queue', $schema['queue']); // Create the sequences table. @@ -542,6 +549,12 @@ function update_fix_d7_requirements() { ), 'primary key' => array('value'), ); + // Check for sequences table that may remain from a Drupal 5 install, if + // found rename it, it has a different schema than D7 but could be useful + // for upgrading modules. + if (db_table_exists('sequences')) { + db_rename_table('sequences', 'sequences_old'); + } db_create_table('sequences', $schema['sequences']); // Initialize the table with the maximum current increment of the tables // that will rely on it for their ids.