function opigno_learning_path_update_8020 in Opigno Learning path 8
Delete invalid records about latest active training's.
File
- ./
opigno_learning_path.install, line 606 - Install, update and uninstall functions for the module.
Code
function opigno_learning_path_update_8020() {
$db_connection = \Drupal::service('database');
try {
$db_connection
->delete('opigno_latest_group_activity')
->condition('uid', NULL, 'IS NULL')
->execute();
} catch (Exception $e) {
\Drupal::logger('opigno_learning_path')
->error($e
->getMessage());
}
}