]> _ Git - cubist_cms-back.git/commitdiff
#2783
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 18:33:18 +0000 (20:33 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 18:33:18 +0000 (20:33 +0200)
src/app/Console/Commands/MigrateCommand.php

index 721bed0653aac52f9d03e386d208992fe97aee3a..b27203fb496e365c020eb57681c71e8e74b5150e 100644 (file)
@@ -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);