You are here

function poll_update_7003 in Drupal 7

Change the weight column to normal int.

File

modules/poll/poll.install, line 191
Install, update and uninstall functions for the poll module.

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