View file upgrade/migrations/20161215200647_change_fields_in_lotinfo.php
<?php use Phinx\Migration\AbstractMigration; class ChangeFieldsInLotinfo extends AbstractMigration { /** * Migrate Up. */ public function up() { $exists = $this->hasTable('lotinfo'); if ($exists) { $users = $this->table('lotinfo'); $users ->changeColumn('winners', 'string', ['null' => true]) ->save(); } } /** * Migrate Down. */ public function down() { } }