Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VACMS-20092: db update to truncate table, uninstall danse modules an … #20118

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
Loading