function poll_update_7003

Change the weight column to normal int.

File

modules/poll/poll.install, line 191

Code

function poll_update_7003() {
    db_change_field('poll_choice', 'weight', 'weight', array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The sort order of this choice among all choices for the same node.',
    ));
}

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