diff options
Diffstat (limited to 'modules/block/block.install')
-rw-r--r-- | modules/block/block.install | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/block/block.install b/modules/block/block.install index 880756fc4..497e48404 100644 --- a/modules/block/block.install +++ b/modules/block/block.install @@ -50,7 +50,6 @@ function block_schema() { 'type' => 'int', 'not null' => TRUE, 'default' => 0, - 'size' => 'tiny', 'description' => 'Block weight within region.', ), 'region' => array( @@ -266,3 +265,20 @@ function block_update_7001() { db_create_table('block_node_type', $schema['block_node_type']); } + +/** + * Change the weight column to normal int. + */ +function block_update_7002() { + db_drop_index('block', 'list'); + db_change_field('block', 'weight', 'weight', array( + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + 'description' => 'Block weight within region.', + ), array( + 'indexes' => array( + 'list' => array('theme', 'status', 'region', 'weight', 'module'), + ), + )); +} |