fix: rollback to password in column

This commit is contained in:
b1ek 2024-08-29 19:26:59 +10:00
parent 0acfbf5685
commit 837a1ffa5b
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 8 deletions

View File

@ -17,18 +17,12 @@ return new class extends Migration
$table->string('name'); $table->string('name');
$table->string('middle_name'); $table->string('middle_name');
$table->string('email')->unique(); $table->string('email')->unique();
$table->string('password');
$table->timestamp('email_verified_at')->nullable(); $table->timestamp('email_verified_at')->nullable();
$table->rememberToken(); $table->rememberToken();
$table->timestamps(); $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) { Schema::create('password_reset_tokens', function (Blueprint $table) {
$table->foreignId('user_id')->primary(); $table->foreignId('user_id')->primary();
$table->string('token'); $table->string('token');
@ -51,7 +45,6 @@ return new class extends Migration
public function down(): void public function down(): void
{ {
Schema::dropIfExists('users'); Schema::dropIfExists('users');
Schema::dropIfExists('passwords');
Schema::dropIfExists('password_reset_tokens'); Schema::dropIfExists('password_reset_tokens');
Schema::dropIfExists('sessions'); Schema::dropIfExists('sessions');
} }