Просмотр файла app/database/migrations/20161216115201_create_antimat_table.php

Размер файла: 351B
  1. <?php
  2.  
  3. use Phinx\Migration\AbstractMigration;
  4.  
  5. class CreateAntimatTable extends AbstractMigration
  6. {
  7. /**
  8. * Migrate Change.
  9. */
  10. public function change()
  11. {
  12. $table = $this->table('antimat', ['collation' => 'utf8mb4_unicode_ci']);
  13. $table->addColumn('string', 'string', ['limit' => 100])
  14. ->create();
  15. }
  16. }