7.x block.install block_update_7003()

Change the weight column to normal int.

Related topics

File

modules/block/block.install, line 236
Install, update and uninstall functions for the block module.

Code

function block_update_7003() {
  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',
      ),
    ),
  ));
}