Просмотр файла app/database/migrations/20161216121030_create_trash_table.php
<?php
use Phinx\Migration\AbstractMigration;
class CreateTrashTable extends AbstractMigration
{
/**
* Change Method.
*/
public function change()
{
$table = $this->table('trash', ['collation' => 'utf8mb4_unicode_ci']);
$table->addColumn('user', 'string', ['limit' => 20])
->addColumn('author', 'string', ['limit' => 20])
->addColumn('text', 'text', ['null' => true])
->addColumn('time', 'integer')
->addColumn('del', 'integer')
->addIndex('time')
->addIndex('user')
->create();
}
}