]> BookStack Code Mirror - bookstack/blob - database/migrations/2016_01_11_210908_add_external_auth_to_users.php
002b45aeceedb14ae57caa1aed360bbb5695b847
[bookstack] / database / migrations / 2016_01_11_210908_add_external_auth_to_users.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5
6 class AddExternalAuthToUsers extends Migration
7 {
8     /**
9      * Run the migrations.
10      *
11      * @return void
12      */
13     public function up()
14     {
15         Schema::table('users', function (Blueprint $table) {
16             $table->string('external_auth_id')->index();
17         });
18     }
19
20     /**
21      * Reverse the migrations.
22      *
23      * @return void
24      */
25     public function down()
26     {
27         Schema::table('users', function (Blueprint $table) {
28             $table->dropColumn('external_auth_id');
29         });
30     }
31 }