We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc64b70 commit bf43e5aCopy full SHA for bf43e5a
src/Illuminate/Database/Console/Migrations/MigrateCommand.php
@@ -212,7 +212,7 @@ protected function createMissingMysqlDatabase($connection)
212
213
$freshConnection = $this->migrator->resolveConnection($this->option('database'));
214
215
- return tap($freshConnection->unprepared("CREATE DATABASE IF NOT EXISTS {$connection->getDatabaseName()}"), function () {
+ return tap($freshConnection->unprepared("CREATE DATABASE IF NOT EXISTS `{$connection->getDatabaseName()}`"), function () {
216
$this->laravel['db']->purge();
217
});
218
} finally {
0 commit comments