View file database/upgrades/20170202194731_add_lang_to_users.php
<?php use Phinx\Migration\AbstractMigration; class AddLangToUsers extends AbstractMigration { /** * Migrate Up. */ public function change() { $table = $this->table('users'); $table->addColumn('lang', 'string', [ 'limit' => 2, 'after' => 'city', 'null' => true ]) ->update(); } }