1
0
forked from poc/pds

Added migration and Updated model, resource, importer, exporter to add test_finished_at column and Added test_finished_at column to Testing Panel Post Reading API in TestingPanelController

This commit is contained in:
dhanabalan
2026-10-26 14:51:52 +05:30
parent 6233103b8b
commit 58394901ac
6 changed files with 82 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$sql1 = <<<'SQL'
ALTER TABLE testing_panel_readings
ADD COLUMN test_finished_at TIMESTAMP DEFAULT NULL
SQL;
DB::statement($sql1);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('testing_panel_readings', function (Blueprint $table) {
// //
// });
}
};