Просмотр файла database/migrations/20180420180043_create_socials_table.php
<?php use Phinx\Migration\AbstractMigration; class CreateSocialsTable extends AbstractMigration { /** * Change Method. */ public function change() { if (! $this->hasTable('socials')) { $table = $this->table('socials', ['engine' => config('DB_ENGINE'), 'collation' => config('DB_COLLATION')]); $table ->addColumn('user_id', 'integer') ->addColumn('network', 'string') ->addColumn('uid', 'string') ->addColumn('created_at', 'integer') ->addIndex('user_id') ->create(); } } }