function zoomapi_update_7206 in Zoom API 7.2
Populate recently added realm columns.
File
- ./
zoomapi.install, line 186 - Install, update, and uninstall hooks for the Zoom API module.
Code
function zoomapi_update_7206() {
if ($realm = zoomapi_realm()) {
$schema = zoomapi_schema();
foreach ($schema as $table => $info) {
if (!db_field_exists($table, 'realm')) {
continue;
}
db_update($table)
->fields([
'realm' => $realm,
])
->condition('realm', '')
->execute();
}
}
}