]> _ Git - cubist_cms-back.git/commitdiff
#2783
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 May 2019 14:05:30 +0000 (16:05 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 May 2019 14:05:30 +0000 (16:05 +0200)
src/app/Console/Commands/MigrateCommand.php

index b27203fb496e365c020eb57681c71e8e74b5150e..771430d8f3913c6653ccf2db02ffe1b4a07d9962 100644 (file)
@@ -53,6 +53,7 @@ class MigrateCommand extends CubistCommand
         ];
         $this->line(print_r($params, true));
         $connection = DriverManager::getConnection($params);
+        $connection->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
         $currentSchema = $connection->getSchemaManager()->createSchema();
         $diff = $comparator->compare($currentSchema, $this->_schema);
 
@@ -68,6 +69,7 @@ class MigrateCommand extends CubistCommand
      */
     public function _migrate($model)
     {
-        $model->setSchema($this->_schema);
+        $this->line('Handle ' . get_class($model));
+        $this->line($model->setSchema($this->_schema));
     }
 }