You are here

function zoomapi_update_7204 in Zoom API 7.2

Add meeting_id to recordings tracker table.

File

./zoomapi.install, line 153
Install, update, and uninstall hooks for the Zoom API module.

Code

function zoomapi_update_7204() {
  if (!db_field_exists('zoomapi_recordings_download_tracker', 'meeting_id')) {
    $schema = zoomapi_schema();
    $field = $schema['zoomapi_recordings_download_tracker']['fields']['meeting_id'];
    db_add_field('zoomapi_recordings_download_tracker', 'meeting_id', $field, [
      'indexes' => [
        'meeting_id' => [
          'meeting_id',
        ],
      ],
    ]);
  }
}