From 78715cc3ef7e6145d3267f709dcfa67d7920c5b1 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Thu, 16 Mar 2023 14:13:40 -0400 Subject: [PATCH] auto truncate winner table --- app/Console/Commands/TabulateWinners.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/TabulateWinners.php b/app/Console/Commands/TabulateWinners.php index bf8861d..d48db4d 100644 --- a/app/Console/Commands/TabulateWinners.php +++ b/app/Console/Commands/TabulateWinners.php @@ -198,7 +198,8 @@ class TabulateWinners extends Command return $NinetyEightToCurrent2ndQuery->vehicle; } - + // Truncate table first + CarShowWinner::truncate(); //Insert Best In Show Winner CarShowWinner::updateOrCreate( [