Merge pull request 'ranjith-dev' (#250) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s

Reviewed-on: #250
This commit was merged in pull request #250.
This commit is contained in:
2026-11-24 11:30:06 +00:00
3 changed files with 38 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ class CncMonitorDataResource extends Resource
->label('Status Duration S'), ->label('Status Duration S'),
Forms\Components\TextInput::make('program') Forms\Components\TextInput::make('program')
->label('Program'), ->label('Program'),
Forms\Components\TextInput::make('program_name')
->label('Program Name'),
Forms\Components\TextInput::make('feed_rate') Forms\Components\TextInput::make('feed_rate')
->label('Feed Rate'), ->label('Feed Rate'),
Forms\Components\TextInput::make('feed_override') Forms\Components\TextInput::make('feed_override')
@@ -134,6 +136,10 @@ class CncMonitorDataResource extends Resource
->label('Program') ->label('Program')
->alignCenter() ->alignCenter()
->sortable(), ->sortable(),
Tables\Columns\TextColumn::make('program_name')
->label('Program')
->alignCenter()
->sortable(),
Tables\Columns\TextColumn::make('feed_rate') Tables\Columns\TextColumn::make('feed_rate')
->label('Feed Rate') ->label('Feed Rate')
->alignCenter() ->alignCenter()

View File

@@ -38,6 +38,7 @@ class CncMonitorData extends Model
'total_run_s', 'total_run_s',
'total_idle_s', 'total_idle_s',
'total_alarm_s', 'total_alarm_s',
'program_name',
'created_at', 'created_at',
'updated_at', 'updated_at',
'scanned_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) {
// //
// });
}
};