function contact_update_7003 in Drupal 7
Change the weight column to normal int.
Related topics
File
- modules/
contact/ 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',
),
),
));
}