getTable($tableprefix.'produit_devis'); if (!$table->hasColumn('comment')) { $table->addColumn('comment', 'string', ['notnull' => false, 'default' => "-"]); }else if ($table->hasColumn('comment')) { $column = $table->getColumn('comment'); $column->setOptions(['type' => \Doctrine\DBAL\Types\Type::getType('string'), 'notnull' => false, 'default' => "-"]); } return $schema; } /** * @param IOutput $output * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options */ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { } }