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