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

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