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