Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / src / Drupal / Commands / config / ConfigExportCommands.php
index 1a75c97db3c7a24627e4839ef436f245db7d6894..5d3438cc264934b9122a44740b4733601506e34d 100644 (file)
@@ -135,6 +135,12 @@ class ConfigExportCommands extends DrushCommands
             }
             // Only delete .yml files, and not .htaccess or .git.
             $target_storage->deleteAll();
+
+            // Also delete collections.
+            foreach ($target_storage->getAllCollectionNames() as $collection_name) {
+                $target_collection = $target_storage->createCollection($collection_name);
+                $target_collection->deleteAll();
+            }
         }
 
         // Write all .yml files.