View file database/migrations/20180420180008_create_changemail_table.php
<?php use Phinx\Migration\AbstractMigration; class CreateChangemailTable extends AbstractMigration { /** * Change Method. */ public function change() { if (! $this->hasTable('changemail')) { $table = $this->table('changemail', ['collation' => env('DB_COLLATION')]); $table ->addColumn('user_id', 'integer') ->addColumn('mail', 'string', ['limit' => 50]) ->addColumn('hash', 'string', ['limit' => 25]) ->addColumn('created_at', 'integer') ->create(); } } }