]> _ Git - cubist_cms-back.git/commitdiff
#2810
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 12 Jun 2019 12:47:02 +0000 (14:47 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 12 Jun 2019 12:47:02 +0000 (14:47 +0200)
src/app/Console/Commands/MigrateCommand.php

index 0fc1f451d57b3ba74a7b515540e82daba4e8fca1..669f7b4308832727be73da682a48e0351327a0ae 100644 (file)
@@ -4,6 +4,7 @@
 namespace Cubist\Backpack\app\Console\Command;
 
 use Cubist\Backpack\app\Console\Commands\CubistCommand;
+use Cubist\Backpack\app\Magic\Models\CubistMagicAbstractModel;
 use Doctrine\DBAL\DriverManager;
 use Doctrine\DBAL\Schema\Comparator;
 use Doctrine\DBAL\Schema\Schema;
@@ -63,14 +64,14 @@ class MigrateCommand extends CubistCommand
     }
 
     /**
-     * @param $model CubistMagicModelAbstract
+     * @param $model CubistMagicAbstractModel
      */
     public function _migrate($model)
     {
         $this->line('Handling ' . get_class($model));
-        $res=$model->setSchema($this->_schema);
-        if(null!==$res) {
-            $this->line(print_r($res,true));
+        $res = $model->setSchema($this->_schema);
+        if (null !== $res) {
+            $this->line('-- Migrate ' . $res->getName());
         }
     }
 }