]> BookStack Code Mirror - bookstack/blob - database/migrations/2015_09_04_165821_create_social_accounts_table.php
bea901136284912f400cfad4dfe924a4dd00e879
[bookstack] / database / migrations / 2015_09_04_165821_create_social_accounts_table.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5
6 return new class extends Migration
7 {
8     /**
9      * Run the migrations.
10      *
11      * @return void
12      */
13     public function up()
14     {
15         Schema::create('social_accounts', function (Blueprint $table) {
16             $table->increments('id');
17             $table->integer('user_id')->index();
18             $table->string('driver')->index();
19             $table->string('driver_id');
20             $table->string('avatar');
21             $table->nullableTimestamps();
22         });
23     }
24
25     /**
26      * Reverse the migrations.
27      *
28      * @return void
29      */
30     public function down()
31     {
32         Schema::drop('social_accounts');
33     }
34 };