From 75def7d534fd9e8bd02cfcde6024c3d04c0c1e68 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Tue, 9 Jan 2024 22:45:21 +0800 Subject: [PATCH] fix: Change table name from lecturing_schedules to lecturings --- src/Lecturings/FridayLecturingGenerator.php | 2 +- src/Lecturings/SaturdayLecturingGenerator.php | 2 +- src/Lecturings/SundayLecturingGenerator.php | 2 +- src/Lecturings/ThursdayLecturingGenerator.php | 2 +- src/Lecturings/TuesdayLecturingGenerator.php | 2 +- src/RemoveDemoData.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Lecturings/FridayLecturingGenerator.php b/src/Lecturings/FridayLecturingGenerator.php index fda2e24..6a205b6 100644 --- a/src/Lecturings/FridayLecturingGenerator.php +++ b/src/Lecturings/FridayLecturingGenerator.php @@ -11,7 +11,7 @@ class FridayLecturingGenerator public function generate(Carbon $date) { - DB::table('lecturing_schedules')->insert([ + DB::table('lecturings')->insert([ 'audience_code' => 'friday', 'date' => $date->format('Y-m-d'), 'start_time' => '12:20', diff --git a/src/Lecturings/SaturdayLecturingGenerator.php b/src/Lecturings/SaturdayLecturingGenerator.php index 48def23..2efe2e8 100644 --- a/src/Lecturings/SaturdayLecturingGenerator.php +++ b/src/Lecturings/SaturdayLecturingGenerator.php @@ -11,7 +11,7 @@ class SaturdayLecturingGenerator public function generate(Carbon $date) { - DB::table('lecturing_schedules')->insert([ + DB::table('lecturings')->insert([ 'audience_code' => 'muslimah', 'date' => $date->format('Y-m-d'), 'start_time' => '16:10', diff --git a/src/Lecturings/SundayLecturingGenerator.php b/src/Lecturings/SundayLecturingGenerator.php index 744ee61..b1cb6fe 100644 --- a/src/Lecturings/SundayLecturingGenerator.php +++ b/src/Lecturings/SundayLecturingGenerator.php @@ -11,7 +11,7 @@ class SundayLecturingGenerator public function generate(Carbon $date) { - DB::table('lecturing_schedules')->insert([ + DB::table('lecturings')->insert([ 'audience_code' => 'public', 'date' => $date->format('Y-m-d'), 'start_time' => '05:50', diff --git a/src/Lecturings/ThursdayLecturingGenerator.php b/src/Lecturings/ThursdayLecturingGenerator.php index 5534cbc..c7a2211 100644 --- a/src/Lecturings/ThursdayLecturingGenerator.php +++ b/src/Lecturings/ThursdayLecturingGenerator.php @@ -11,7 +11,7 @@ class ThursdayLecturingGenerator public function generate(Carbon $date) { - DB::table('lecturing_schedules')->insert([ + DB::table('lecturings')->insert([ 'audience_code' => 'public', 'date' => $date->format('Y-m-d'), 'start_time' => '05:50', diff --git a/src/Lecturings/TuesdayLecturingGenerator.php b/src/Lecturings/TuesdayLecturingGenerator.php index 3b4d220..1565f4f 100644 --- a/src/Lecturings/TuesdayLecturingGenerator.php +++ b/src/Lecturings/TuesdayLecturingGenerator.php @@ -11,7 +11,7 @@ class TuesdayLecturingGenerator public function generate(Carbon $date) { - DB::table('lecturing_schedules')->insert([ + DB::table('lecturings')->insert([ 'audience_code' => 'public', 'date' => $date->format('Y-m-d'), 'start_time' => '05:50', diff --git a/src/RemoveDemoData.php b/src/RemoveDemoData.php index cbfa959..9636358 100644 --- a/src/RemoveDemoData.php +++ b/src/RemoveDemoData.php @@ -57,7 +57,7 @@ public function removeBankAccountBalances() public function removeLecturingSchedules() { $this->write(Task::class, 'Remove demo lecturing schedules', function () { - DB::table('lecturing_schedules')->whereNull('created_at')->delete(); + DB::table('lecturings')->whereNull('created_at')->delete(); }); }