Skip to content

Commit

Permalink
Merge pull request #9 from ryo-endo/migration_bug_fix
Browse files Browse the repository at this point in the history
プラグインアップデート時にマイグレーションできない不具合の修正。
  • Loading branch information
ryo-endo committed Feb 19, 2016
2 parents cfd2528 + a7019f8 commit 681d21c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Migration/Version201602161300.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down
2 changes: 1 addition & 1 deletion PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function disable($config, $app)

public function update($config, $app)
{

$this->migrationSchema($app, __DIR__ . '/Migration', $config['code']);
}

}

0 comments on commit 681d21c

Please sign in to comment.