summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-04-10 18:17:17 +0200
committerDries Buytaert <dries@buytaert.net>2011-04-10 18:17:17 +0200
commit49a5c2944e67c2a70d4a1da80413817fffdf3e50 (patch)
tree4ed86ddad25213d7df4794b4dd5138cc2b00b4ec /modules
parentf01fb0ec04ad5c50dad329716d6b02983c58cffb (diff)
downloadbrdo-49a5c2944e67c2a70d4a1da80413817fffdf3e50.tar.gz
brdo-49a5c2944e67c2a70d4a1da80413817fffdf3e50.tar.bz2
- Patch #722920 by andypost: slightly optimize the block upgrade path.
Diffstat (limited to 'modules')
-rw-r--r--modules/block/block.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/block/block.install b/modules/block/block.install
index f6dfb35c5..fcb95fc4f 100644
--- a/modules/block/block.install
+++ b/modules/block/block.install
@@ -228,6 +228,7 @@ function block_update_7000() {
* {boxes} to {block_custom}.
*/
function block_update_7002() {
+ db_drop_index('blocks', 'list');
db_rename_table('blocks', 'block');
db_rename_table('blocks_roles', 'block_role');
db_rename_table('boxes', 'block_custom');
@@ -237,7 +238,6 @@ function block_update_7002() {
* Change the weight column to normal int.
*/
function block_update_7003() {
- db_drop_index('block', 'list');
db_change_field('block', 'weight', 'weight', array(
'type' => 'int',
'not null' => TRUE,