Commit 6a115d63 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-4954: adding code to remove all references to config_snapshot in...

ISTWCMS-4954: adding code to remove all references to config_snapshot in database within the update hook to remove all to do with config sync distro, so that features does not show overridden on exisiting sites
parent 2b313345
...@@ -156,6 +156,12 @@ function uw_sites_all_update_8105(&$sandbox) { ...@@ -156,6 +156,12 @@ function uw_sites_all_update_8105(&$sandbox) {
*/ */
function uw_sites_all_update_8106() { function uw_sites_all_update_8106() {
// Delete all references of config_snapshot from database,
// so that features does not show as overridden.
$query = \Drupal::database()->delete('config');
$query->condition('name', '%config_snapshot%', 'LIKE');
$query->execute();
// Modules to uninstall. // Modules to uninstall.
$modules = [ $modules = [
'config_distro', 'config_distro',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment