2015-09-04 19:40:36 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class CreateSocialAccountsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('social_accounts', function (Blueprint $table) {
|
|
|
|
$table->increments('id');
|
2015-09-05 19:25:57 +00:00
|
|
|
$table->integer('user_id')->index();
|
|
|
|
$table->string('driver')->index();
|
2015-09-04 19:40:36 +00:00
|
|
|
$table->string('driver_id');
|
|
|
|
$table->string('avatar');
|
2016-02-16 21:25:11 +00:00
|
|
|
$table->nullableTimestamps();
|
2015-09-04 19:40:36 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::drop('social_accounts');
|
|
|
|
}
|
|
|
|
}
|