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

Размер файла: 514B
  1. <?php
  2.  
  3. use Phinx\Migration\AbstractMigration;
  4.  
  5. class CreateChangemailTable extends AbstractMigration
  6. {
  7. /**
  8. * Change Method.
  9. */
  10. public function change()
  11. {
  12. $table = $this->table('changemail', ['collation' => 'utf8mb4_unicode_ci']);
  13. $table->addColumn('user', 'string', ['limit' => 20])
  14. ->addColumn('mail', 'string', ['limit' => 50])
  15. ->addColumn('hash', 'string', ['limit' => 25])
  16. ->addColumn('time', 'integer')
  17. ->create();
  18. }
  19. }