]> BookStack Code Mirror - bookstack/blob - database/migrations/2015_09_04_165821_create_social_accounts_table.php
Merge pull request #5844 from BookStackApp/user_ids
[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 use Illuminate\Support\Facades\Schema;
6
7 return new class extends Migration
8 {
9     /**
10      * Run the migrations.
11      */
12     public function up(): void
13     {
14         Schema::create('social_accounts', function (Blueprint $table) {
15             $table->increments('id');
16             $table->integer('user_id')->index();
17             $table->string('driver')->index();
18             $table->string('driver_id');
19             $table->string('avatar');
20             $table->nullableTimestamps();
21         });
22     }
23
24     /**
25      * Reverse the migrations.
26      */
27     public function down(): void
28     {
29         Schema::drop('social_accounts');
30     }
31 };