From 8ba6a93214b29bdf670b70b27de76fa3f38347a6 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 14 Jun 2022 17:03:58 +1000 Subject: [PATCH] Fixes for testing to pass --- app/Http/Controllers/CostController.php | 1 + database/migrations/2022_06_13_230224_costs.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CostController.php b/app/Http/Controllers/CostController.php index af3de83..9b714b2 100644 --- a/app/Http/Controllers/CostController.php +++ b/app/Http/Controllers/CostController.php @@ -10,6 +10,7 @@ class CostController extends Controller { public function home(Cost $o) { + // @todo Need to add the services that are active that are not on the bill for the supplier. return view('a.cost.home',['o'=>$o]); } } diff --git a/database/migrations/2022_06_13_230224_costs.php b/database/migrations/2022_06_13_230224_costs.php index 57ff235..18b67f4 100644 --- a/database/migrations/2022_06_13_230224_costs.php +++ b/database/migrations/2022_06_13_230224_costs.php @@ -13,7 +13,7 @@ return new class extends Migration */ public function up() { - $this->down(); + DB::statement('RENAME TABLE service__generic TO service_generic'); Schema::create('costs', function (Blueprint $table) { $table->integer('id',TRUE,TRUE); $table->timestamps();