diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-02-25 09:42:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-02-25 09:42:39 +0000 |
commit | 0071d5e296f466572f68412927eaafa5d0a4092c (patch) | |
tree | 8179ff2dcc6b0b3b068b34a75beab1fbc46158ee /includes/update.inc | |
parent | cec41faf474c0a7df4cbe3da38e62ae08d713ead (diff) | |
download | brdo-0071d5e296f466572f68412927eaafa5d0a4092c.tar.gz brdo-0071d5e296f466572f68412927eaafa5d0a4092c.tar.bz2 |
- Patch #719730 by anarcat, ctmattice1, peterx: drop the sequences and queue tables from D5 during the D6 to D7 upgrade.
Diffstat (limited to 'includes/update.inc')
-rw-r--r-- | includes/update.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/update.inc b/includes/update.inc index d057eb88f..ba83db0db 100644 --- a/includes/update.inc +++ b/includes/update.inc @@ -527,6 +527,12 @@ function update_fix_d7_requirements() { 'expire' => array('expire'), ), ); + // Check for queue table that may remain from D5 or D6, if found + //drop it. + if (db_table_exists('queue')) { + db_drop_table('queue'); + } + db_create_table('queue', $schema['queue']); // Create the sequences table. @@ -542,6 +548,11 @@ function update_fix_d7_requirements() { ), 'primary key' => array('value'), ); + // Check for sequences table that may remain from D5 or D6, if found + //drop it. + if (db_table_exists('sequences')) { + db_drop_table('sequences'); + } 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. |