Skip to content

Commit

Permalink
Merge branch 'main' into 19814-update-npm-dependencies-for-the-projec…
Browse files Browse the repository at this point in the history
…t-root-packagejson
  • Loading branch information
keisterj-oddball committed Dec 17, 2024
2 parents 7a20631 + a968aef commit fa047f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 0 additions & 2 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ module:
csv_serialization: 0
ctools: 0
ctools_block: 0
danse: 0
danse_content_moderation: 0
datetime: 0
datetime_range: 0
dblog: 0
Expand Down
6 changes: 0 additions & 6 deletions config/sync/views.view.danse_user_notifications.yml

This file was deleted.

17 changes: 17 additions & 0 deletions docroot/modules/custom/va_gov_db/va_gov_db.install
Original file line number Diff line number Diff line change
Expand Up @@ -1166,3 +1166,20 @@ function va_gov_db_update_9015(&$sandbox) {
'va_gov_github',
]);
}

/**
* Truncate danse events table, remove broken view and uninstall danse modules.
*/
function va_gov_db_update_10001(): string {
// Remove the danse_event table.
Drupal::database()->truncate('danse_event')->execute();
Drupal::logger('va_gov_backend')->log(LogLevel::INFO, 'danse_event table truncated.');
// Remove the broken danse_user_notifications view.
Drupal::service('config.factory')->getEditable('views.view.danse_user_notifications')->delete();
Drupal::logger('va_gov_backend')->log(LogLevel::INFO, 'Deleted danse_user_notifications view.');
$uninstall_modules = [
'danse',
'danse_content_moderation',
];
return _va_gov_db_uninstall_modules($uninstall_modules);
}

0 comments on commit fa047f3

Please sign in to comment.