function zoomapi_update_7104 in Zoom API 7
Same name and namespace in other branches
- 7.2 zoomapi.install \zoomapi_update_7104()
Change to zoomapi meeting tracker primary key and indexes.
File
- ./
zoomapi.install, line 60 - Install, update, and uninstall hooks for the Zoom API module.
Code
function zoomapi_update_7104() {
db_drop_primary_key('zoomapi_meeting_tracker');
db_add_primary_key('zoomapi_meeting_tracker', [
'uuid',
]);
$indexes = [
'uuid',
'meeting_id',
'host_zoom_user_id',
'meeting_type',
'start_time',
'created',
'entity_type',
'entity_id',
'expires',
];
foreach ($indexes as $index) {
db_drop_index('zoomapi_meeting_tracker', $index);
db_add_index('zoomapi_meeting_tracker', "zoomapi_{$index}", [
$index,
]);
}
}