function ultimate_cron_update_7109 in Ultimate Cron 7.2
Same name and namespace in other branches
- 7 ultimate_cron.install \ultimate_cron_update_7109()
Rename uniq_function to uniq_name to match the schema.
File
- ./
ultimate_cron.install, line 636 - Installation file for Ultimate Cron.
Code
function ultimate_cron_update_7109() {
// ultimate_cron_update_7105() adds unique key 'uniq_function', but
// ultimate_cron_schema() creates 'uniq_name' - so we must correct that here.
if (db_index_exists('ultimate_cron', 'uniq_function')) {
db_drop_unique_key('ultimate_cron', 'uniq_function');
db_add_unique_key('ultimate_cron', 'uniq_name', array(
'name',
));
}
}