diff options
Diffstat (limited to 'database/migrations')
-rw-r--r-- | database/migrations/.gitkeep | 1 | ||||
-rw-r--r-- | database/migrations/2014_10_12_000000_create_users_table.php | 3 | ||||
-rw-r--r-- | database/migrations/2014_10_12_100000_create_password_resets_table.php | 7 |
3 files changed, 5 insertions, 6 deletions
diff --git a/database/migrations/.gitkeep b/database/migrations/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/database/migrations/.gitkeep @@ -0,0 +1 @@ + diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index 689cbee..59aa01a 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -1,6 +1,5 @@ <?php -use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; @@ -30,6 +29,6 @@ class CreateUsersTable extends Migration */ public function down() { - Schema::dropIfExists('users'); + Schema::drop('users'); } } diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_resets_table.php index 0d5cb84..00057f9 100644 --- a/database/migrations/2014_10_12_100000_create_password_resets_table.php +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -1,6 +1,5 @@ <?php -use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; @@ -15,8 +14,8 @@ class CreatePasswordResetsTable extends Migration { Schema::create('password_resets', function (Blueprint $table) { $table->string('email')->index(); - $table->string('token'); - $table->timestamp('created_at')->nullable(); + $table->string('token')->index(); + $table->timestamp('created_at'); }); } @@ -27,6 +26,6 @@ class CreatePasswordResetsTable extends Migration */ public function down() { - Schema::dropIfExists('password_resets'); + Schema::drop('password_resets'); } } |