function opening_hours_update_7001 in Opening hours 7
Implements hook_update_N().
Remove unique key, so that “duplicate” opening hours are allowed.
Enforcing uniqueness doesn't make as much sense after we got categories.
File
- ./
opening_hours.install, line 136 - Database schema, installation and upgrade hooks for the opening hours module.
Code
function opening_hours_update_7001(&$sandbox) {
db_drop_unique_key('opening_hours', 'nid_date_time');
}