From: Vincent Vanwaelscappel Date: Mon, 27 May 2019 14:05:30 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=96bea5df520efd344ef4cb2db0eb5d346e4c503a;p=cubist_cms-back.git #2783 --- diff --git a/src/app/Console/Commands/MigrateCommand.php b/src/app/Console/Commands/MigrateCommand.php index b27203f..771430d 100644 --- a/src/app/Console/Commands/MigrateCommand.php +++ b/src/app/Console/Commands/MigrateCommand.php @@ -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)); } }