Added program data column in cnc monitor data table
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s

This commit is contained in:
dhanabalan
2026-11-24 16:57:48 +05:30
parent 60041b6991
commit 400b78415e
2 changed files with 32 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ class CncMonitorData extends Model
'total_run_s',
'total_idle_s',
'total_alarm_s',
'program_name',
'created_at',
'updated_at',
'scanned_at',

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 cnc_monitor_data
ADD COLUMN program_name TEXT DEFAULT NULL
SQL;
DB::statement($sql1);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('cnc_monitor_data', function (Blueprint $table) {
// //
// });
}
};