diff --git a/database/migrations/2024_03_28_104056_fix_points_of_users.php b/database/migrations/2024_03_28_104056_fix_points_of_users.php index ae26e858..00347f30 100644 --- a/database/migrations/2024_03_28_104056_fix_points_of_users.php +++ b/database/migrations/2024_03_28_104056_fix_points_of_users.php @@ -15,11 +15,4 @@ public function up(): void DB::statement("UPDATE users SET points = ((SELECT count(user_id) FROM exercise_members em WHERE em.user_id = users.id AND state = 'finished') * 3);"); DB::statement("UPDATE users SET points = points + (SELECT count(user_id) FROM chapter_members em WHERE em.user_id = users.id AND state = 'finished');"); } - - /** - * Reverse the migrations. - */ - public function down(): void - { - } };