fix: rollback to password in column
This commit is contained in:
parent
0acfbf5685
commit
837a1ffa5b
|
@ -17,18 +17,12 @@ return new class extends Migration
|
|||
$table->string('name');
|
||||
$table->string('middle_name');
|
||||
$table->string('email')->unique();
|
||||
$table->string('password');
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('passwords', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('hash');
|
||||
$table->foreignId('user_id')->index();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('password_reset_tokens', function (Blueprint $table) {
|
||||
$table->foreignId('user_id')->primary();
|
||||
$table->string('token');
|
||||
|
@ -51,7 +45,6 @@ return new class extends Migration
|
|||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('users');
|
||||
Schema::dropIfExists('passwords');
|
||||
Schema::dropIfExists('password_reset_tokens');
|
||||
Schema::dropIfExists('sessions');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue