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 52d1731..ecd56b9 100644 --- a/database/migrations/2025_01_27_223312_change_profile_none.php +++ b/database/migrations/2025_01_27_223312_change_profile_none.php @@ -15,6 +15,12 @@ public function up(): void DB::table("users")->where("path", "profiles/none.png")->update([ "path" => "profiles/none.webp" ]); + $anulax = DB::table("users")->where("email", "anulax1225@icloud.com")->first(); + $gmail = DB::table("users")->where("email", "vinayak.ambigapathy@gmail.com")->first(); + 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 ]); + } } /**