File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,25 +44,6 @@ public function handle()
4444 Event::where ('approved_by ' , $ this ->userId )
4545 ->update (['approved_by ' => $ this ->legacyUserId ]);
4646
47- // Update participations
48- Participation::where ('user_id ' , $ this ->userId )
49- ->update (['user_id ' => $ this ->legacyUserId ]);
50-
51- // Update excellences
52- Excellence::where ('user_id ' , $ this ->userId )
53- ->update (['user_id ' => $ this ->legacyUserId ]);
54-
55- // Update model_has_roles table directly
56- DB ::table ('model_has_roles ' )
57- ->where ('model_id ' , $ this ->userId )
58- ->where ('model_type ' , User::class)
59- ->update (['model_id ' => $ this ->legacyUserId ]);
60-
61- // Update leading_teacher_expertise_user table directly
62- DB ::table ('leading_teacher_expertise_user ' )
63- ->where ('user_id ' , $ this ->userId )
64- ->update (['user_id ' => $ this ->legacyUserId ]);
65-
6647 // Hard delete the user
6748 User::where ('id ' , $ this ->userId )->delete ();
6849
You can’t perform that action at this time.
0 commit comments