diff --git a/Migration/Version201602161300.php b/Migration/Version201602161300.php index b9a912a..8f7056d 100644 --- a/Migration/Version201602161300.php +++ b/Migration/Version201602161300.php @@ -27,8 +27,8 @@ public function up(Schema $schema) { // this up() migration is auto-generated, please modify it to your needs $table = $schema->getTable('plg_product_maker'); - if (!$table->hasColumn('maker_url')) { - $table->addColumn('maker_url', 'text', array('notnull' => true)); + if ($table->hasColumn('maker_url')) { + $table->changeColumn('maker_url', array('NotNull' => false)); } }