function system_update_7018 in Drupal 7
Shorten the {system}.type column and modify indexes.
Related topics
File
- modules/
system/ system.install, line 2218 - Install, update and uninstall functions for the system module.
Code
function system_update_7018() {
db_drop_index('system', 'modules');
db_drop_index('system', 'type_name');
db_change_field('system', 'type', 'type', array(
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
));
db_add_index('system', 'type_name', array(
'type',
'name',
));
}