From 8b7c702d4e4a72882c732261c64d692ac0805835 Mon Sep 17 00:00:00 2001 From: Jibry Fathima Fasna Date: Thu, 12 Feb 2026 16:49:17 +0100 Subject: [PATCH] added table for llp costs table for json --- app/Concerns/V7Configuration.php | 8 +++++ ...26_02_12_153311_create_llp_costs_table.php | 32 +++++++++++++++++++ tests/Feature/LlpCostsTableTest.php | 21 ++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 app/Concerns/V7Configuration.php create mode 100644 database/migrations/2026_02_12_153311_create_llp_costs_table.php create mode 100644 tests/Feature/LlpCostsTableTest.php diff --git a/app/Concerns/V7Configuration.php b/app/Concerns/V7Configuration.php new file mode 100644 index 0000000..caea31f --- /dev/null +++ b/app/Concerns/V7Configuration.php @@ -0,0 +1,8 @@ +id(); + $table->date('data_source_date'); + $table->string('engine_model'); + $table->string('file_name'); + $table->string('company'); + $table->json('costs'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('llp_costs'); + } +}; diff --git a/tests/Feature/LlpCostsTableTest.php b/tests/Feature/LlpCostsTableTest.php new file mode 100644 index 0000000..b737a43 --- /dev/null +++ b/tests/Feature/LlpCostsTableTest.php @@ -0,0 +1,21 @@ +toBeTrue(); +});