From: Vincent Vanwaelscappel Date: Fri, 24 May 2019 18:06:45 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f9625336551f4f3e56f3c4aa4f5f8f96fa687e8b;p=cubist_cms-back.git #2783 --- diff --git a/src/app/Console/Commands/MigrateCommand.php b/src/app/Console/Commands/MigrateCommand.php index fa00fa3..df5f35d 100644 --- a/src/app/Console/Commands/MigrateCommand.php +++ b/src/app/Console/Commands/MigrateCommand.php @@ -38,13 +38,16 @@ class MigrateCommand extends CubistCommand $this->_handleMagicFolder([$this, '_migrate']); + $drivers = ['mysql' => 'pdo_mysql']; + + $comparator = new Comparator(); $connection = DriverManager::getConnection([ 'host' => env('DB_HOST'), 'port' => env('DB_PORT'), 'user' => env('DB_USERNAME'), 'password' => env('DB_PASSWORD'), - 'driver' => env('DB_CONNECTION'), + 'driver' => $drivers[env('DB_CONNECTION')], 'dbname' => env('DB_DATABASE'), ], env('DB_CONNECTION') @@ -55,7 +58,7 @@ class MigrateCommand extends CubistCommand $queries = $diff->toSaveSql($connection->getDatabasePlatform()); foreach ($queries as $q) { $this->line($q); - // $connection->exec($q); + // $connection->exec($q); } }