You are here

function zoomapi_update_7205 in Zoom API 7.2

Add realm column to all zoomapi tables.

File

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

Code

function zoomapi_update_7205() {
  $schema = zoomapi_schema();
  foreach ($schema as $table => $info) {
    if (db_field_exists($table, 'realm')) {
      continue;
    }
    $field = $info['fields']['realm'];
    db_add_field($table, 'realm', $field, [
      'indexes' => [
        'realm' => [
          'realm',
        ],
      ],
    ]);
  }
}