View file database/migrations/20181203195453_create_modules_table.php
<?php use Phinx\Migration\AbstractMigration; class CreateModulesTable extends AbstractMigration { /** * Change Method. */ public function change() { $table = $this->table('modules', ['collation' => env('DB_COLLATION')]); $table ->addColumn('name', 'string', ['limit' => 50]) ->addColumn('version', 'string', ['limit' => 10]) ->addColumn('updated_at', 'integer', ['null' => true]) ->addColumn('created_at', 'integer') ->create(); } }