From 3a288ff15f57cdba1388b3be322984142ac8bf5a Mon Sep 17 00:00:00 2001 From: Axel <1597611+axeloz@users.noreply.github.com> Date: Mon, 20 Dec 2021 21:43:46 +0100 Subject: [PATCH] Removing CleanHistory --- app/Console/Commands/CleanHistory.php | 51 +++++++++++++++++++++++++++ app/Console/Kernel.php | 2 -- 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 app/Console/Commands/CleanHistory.php diff --git a/app/Console/Commands/CleanHistory.php b/app/Console/Commands/CleanHistory.php new file mode 100644 index 0000000..e7f2b8c --- /dev/null +++ b/app/Console/Commands/CleanHistory.php @@ -0,0 +1,51 @@ +subWeek(); + $history = app('db')->select(' + SELECT * FROM tasks_history as h + WHERE datetime < :lastweek + ', [ + 'lastweek' => $lastweek + ]); + + + } +} + diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index aa7e989..32bcd58 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -5,7 +5,6 @@ namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Laravel\Lumen\Console\Kernel as ConsoleKernel; use App\Console\Commands\SyncCustomers; -use App\Console\Commands\CleanHistory; use App\Console\Commands\RunMonitoring; class Kernel extends ConsoleKernel @@ -17,7 +16,6 @@ class Kernel extends ConsoleKernel */ protected $commands = [ SyncCustomers::class, - CleanHistory::class, RunMonitoring::class ];