You are here

function contact_update_7003 in Contact 7.2

Change the weight column to normal int.

File

./contact.install, line 152
Install, update and uninstall functions for the contact module.

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