From 2e8316d92cce2545f1683cf6361e8245cdd6d958 Mon Sep 17 00:00:00 2001 From: anulax1225 Date: Mon, 27 Jan 2025 23:04:02 +0100 Subject: [PATCH] Account deletion --- database/migrations/2025_01_27_223312_change_profile_none.php | 1 + 1 file changed, 1 insertion(+) diff --git a/database/migrations/2025_01_27_223312_change_profile_none.php b/database/migrations/2025_01_27_223312_change_profile_none.php index ecd56b9..9beefee 100644 --- a/database/migrations/2025_01_27_223312_change_profile_none.php +++ b/database/migrations/2025_01_27_223312_change_profile_none.php @@ -20,6 +20,7 @@ public function up(): void if($anulax && $gmail){ DB::table("photos")->where("user_id", $anulax->id)->update([ "user_id" => $gmail->id ]); DB::table("albums")->where("user_id", $anulax->id)->update([ "user_id" => $gmail->id ]); + DB::table("users")->where("id", $anulax->id)->delete(); } }