Skip to content

Commit e33a00e

Browse files
authored
Merge pull request #6856 from paulbalandan/refactor-create-db-test
Fix CreateDatabase leaving altered database config in connection
2 parents 49aeab2 + 4af9331 commit e33a00e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Commands/Database/CreateDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ public function run(array $params)
148148
} catch (Throwable $e) {
149149
$this->showError($e);
150150
} finally {
151-
// Reset the altered config no matter what happens.
152151
Factories::reset('config');
152+
Database::connect(null, false);
153153
}
154154
}
155155
}

0 commit comments

Comments
 (0)