function block_update_7003

Change the weight column to normal int.

Related topics

File

modules/block/block.install, line 236

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',
            ),
        ),
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.