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