View file upgrade/migrations/20161214201847_change_fields_in_blogs.php
<?php use Phinx\Migration\AbstractMigration; class ChangeFieldsInBlogs extends AbstractMigration { /** * Migrate Up. */ public function up() { $users = $this->table('blogs'); $users ->changeColumn('text', 'text', ['null' => true]) ->changeColumn('time', 'integer') ->save(); } /** * Migrate Down. */ public function down() { } }