Skip to content

Commit 2004001

Browse files
committed
Ensure connection is closed before deleting sqlite file
This should fix inability to drop sqlite DB on Windows OS
1 parent 0e6b32b commit 2004001

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Command/DropDatabaseDoctrineCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
104104
if ($shouldDropDatabase) {
105105
if ($schemaManager instanceof SqliteSchemaManager) {
106106
// dropDatabase() is deprecated for Sqlite
107+
$connection->close();
107108
if (file_exists($name)) {
108109
unlink($name);
109110
}

0 commit comments

Comments
 (0)