diff --git a/src/Drush/Commands/UpdateDrushCommands.php b/src/Drush/Commands/UpdateDrushCommands.php index 8ad6496..e220af9 100644 --- a/src/Drush/Commands/UpdateDrushCommands.php +++ b/src/Drush/Commands/UpdateDrushCommands.php @@ -258,7 +258,7 @@ private function updateDefaultFiles(UpdateOptions $options) : self { 'docker/openshift/crons/pubsub.sh', 'docker/openshift/preflight/preflight.php', 'docker/openshift/notify.php', - 'docker-compose.yml', + 'compose.yaml', 'phpunit.xml.dist', 'phpunit.platform.xml', 'tools/make/project/install.mk', diff --git a/src/Update/migrations.php b/src/Update/migrations.php index c3a3198..884d4f6 100644 --- a/src/Update/migrations.php +++ b/src/Update/migrations.php @@ -136,3 +136,13 @@ function drupal_tools_update_5() : UpdateResult { return new UpdateResult(['Set composer extra.patchLevel configuration.']); } + +/** + * Remove leftover docker-compose.yml file. + */ +function drupal_tools_update_6(UpdateOptions $options, FileManager $fileManager) : UpdateResult { + $fileManager->removeFiles($options, [ + 'docker-compose.yml', + ]); + return new UpdateResult(['Attempted to remove docker-compose.yml file.']); +}