From: Vincent Vanwaelscappel Date: Fri, 24 May 2019 18:33:18 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d71d99a1ed5cd7323266a3d068f3338871651c23;p=cubist_cms-back.git #2783 --- diff --git a/src/app/Console/Commands/MigrateCommand.php b/src/app/Console/Commands/MigrateCommand.php index 721bed0..b27203f 100644 --- a/src/app/Console/Commands/MigrateCommand.php +++ b/src/app/Console/Commands/MigrateCommand.php @@ -43,15 +43,15 @@ class MigrateCommand extends CubistCommand $drivers = ['mysql' => 'pdo_mysql']; $comparator = new Comparator(); - $params=[ + $params = [ 'host' => config($prefix . 'host'), - 'port' => config($prefix . '.port'), - 'user' => config($prefix . '.username'), - 'password' => config($prefix . '.password'), - 'driver' => $drivers[config($prefix . '.driver')], - 'dbname' => config($prefix . '.database'), + 'port' => config($prefix . 'port'), + 'user' => config($prefix . 'username'), + 'password' => config($prefix . 'password'), + 'driver' => $drivers[config($prefix . 'driver')], + 'dbname' => config($prefix . 'database'), ]; - $this->line( print_r($params,true)); + $this->line(print_r($params, true)); $connection = DriverManager::getConnection($params); $currentSchema = $connection->getSchemaManager()->createSchema(); $diff = $comparator->compare($currentSchema, $this->_schema);