From 837a1ffa5b30a6bcd90d2266a23c2029a56ce406 Mon Sep 17 00:00:00 2001 From: b1ek Date: Thu, 29 Aug 2024 19:26:59 +1000 Subject: [PATCH] fix: rollback to password in column --- .../migrations/0001_01_01_000000_create_users_table.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/database/migrations/0001_01_01_000000_create_users_table.php b/database/migrations/0001_01_01_000000_create_users_table.php index 938893f..dc21c93 100644 --- a/database/migrations/0001_01_01_000000_create_users_table.php +++ b/database/migrations/0001_01_01_000000_create_users_table.php @@ -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'); }