Skip to content

Commit 4af9331

Browse files
committed
Fix CreateDatabase leaving altered database config in connection
1 parent 7578a48 commit 4af9331

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)