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