View file app/database/migrations/20161216115644_create_blacklist_table.php
<?php use Phinx\Migration\AbstractMigration; class CreateBlacklistTable extends AbstractMigration { /** * Migrate Change. */ public function change() { $table = $this->table('blacklist', ['collation' => 'utf8mb4_unicode_ci']); $table->addColumn('type', 'boolean') ->addColumn('value', 'string', ['limit' => 100]) ->addColumn('user', 'string', ['limit' => 20, 'null' => true]) ->addColumn('time', 'integer') ->addIndex('type') ->addIndex('value') ->create(); } }