function hosting_task_update_7301 in Hosting 7.3
Same name and namespace in other branches
- 7.4 task/hosting_task.install \hosting_task_update_7301()
Add indexes to the hosting_task and hosting_task_arguments tables.
File
- task/
hosting_task.install, line 349 - Define the database schema and update functions for the hosting_task module.
Code
function hosting_task_update_7301() {
if (!db_index_exists('hosting_task', 'hosting_task_nid_idx')) {
db_add_index('hosting_task', 'hosting_task_nid_idx', array(
'nid',
));
}
if (!db_index_exists('hosting_task_arguments', 'hosting_task_arguments_nid_idx')) {
db_add_index('hosting_task_arguments', 'hosting_task_arguments_nid_idx', array(
'nid',
));
}
if (!db_index_exists('hosting_task_arguments', 'hosting_task_arguments_vid_idx')) {
db_add_index('hosting_task_arguments', 'hosting_task_arguments_vid_idx', array(
'vid',
));
}
}