Browse Source

Make password_resets.created_at nullable

Prevents MySQL assigning default CURRENT_TIMESTAMP
Related issue: laravel/framework#11518
Sara Bine 8 years ago
parent
commit
be7b2627ae

+ 1 - 1
database/migrations/2014_10_12_100000_create_password_resets_table.php

@@ -15,7 +15,7 @@ class CreatePasswordResetsTable extends Migration
         Schema::create('password_resets', function (Blueprint $table) {
             $table->string('email')->index();
             $table->string('token')->index();
-            $table->timestamp('created_at');
+            $table->timestamp('created_at')->nullable();
         });
     }