From 3c545f0dce5d81c392b94df393ff542d49ae3610 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Thu, 12 Jun 2025 00:09:05 -0500 Subject: [PATCH] Make changes to total scores table to have subscores for seating and for advancement. --- .../2025_06_12_042434_create_entry_total_scores_table.php | 3 ++- routes/web.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/database/migrations/2025_06_12_042434_create_entry_total_scores_table.php b/database/migrations/2025_06_12_042434_create_entry_total_scores_table.php index 308408d..467c2dd 100644 --- a/database/migrations/2025_06_12_042434_create_entry_total_scores_table.php +++ b/database/migrations/2025_06_12_042434_create_entry_total_scores_table.php @@ -17,7 +17,8 @@ return new class extends Migration $table->foreignIdFor(Entry::class)->constrained()->cascadeOnDelete()->cascadeOnUpdate(); $table->decimal('seating_total', 9, 6); $table->decimal('advancement_total', 9, 6); - $table->json('subscore_totals'); + $table->json('seating_subscore_totals'); + $table->json('advancement_subscore_totals'); $table->timestamps(); }); } diff --git a/routes/web.php b/routes/web.php index 8ca8d03..8221a7c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -12,7 +12,7 @@ require __DIR__.'/tabulation.php'; require __DIR__.'/user.php'; require __DIR__.'/nominationEnsemble.php'; -Route::get('/test', [TestController::class, 'flashTest'])->middleware('auth', 'verified'); +Route::get('/test', [TestController::class, 'test'])->middleware('auth', 'verified'); Route::view('/home', 'welcome')->middleware('guest')->name('landing'); Route::view('/', 'landing')->name('home');