function contact_update_7003

Change the weight column to normal int.

Related topics

File

modules/contact/contact.install, line 152

Code

function contact_update_7003() {
    db_drop_index('contact', 'list');
    db_change_field('contact', 'weight', 'weight', array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => "The category's weight.",
    ), array(
        'indexes' => array(
            'list' => array(
                'weight',
                'category',
            ),
        ),
    ));
}

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