osb/database/migrations/2014_10_12_100000_create_password_resets_table.php

33 lines
683 B
PHP
Raw Normal View History

2023-05-13 11:20:56 +00:00
<?php
use Illuminate\Support\Facades\Schema;
2024-06-21 07:43:32 +00:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
2023-05-13 11:20:56 +00:00
2024-06-21 07:43:32 +00:00
class CreatePasswordResetsTable extends Migration
2023-05-13 11:20:56 +00:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2024-06-21 07:43:32 +00:00
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
2023-05-13 11:20:56 +00:00
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2024-06-21 07:43:32 +00:00
Schema::dropIfExists('password_resets');
2023-05-13 11:20:56 +00:00
}
2024-06-21 07:43:32 +00:00
}