Merge pull request 'ranjith-dev' (#1603) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Reviewed-on: #1603
This commit was merged in pull request #1603.
This commit is contained in:
@@ -140,6 +140,18 @@ class CncMonitorDataResource extends Resource
|
||||
->label('Program Name')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('work_offset_code')
|
||||
->label('Work Offset Code')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('work_x')
|
||||
->label('Work X')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('work_z')
|
||||
->label('Work Z')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('feed_rate')
|
||||
->label('Feed Rate')
|
||||
->alignCenter()
|
||||
@@ -170,6 +182,30 @@ class CncMonitorDataResource extends Resource
|
||||
->alignCenter()
|
||||
->numeric()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('coolant_motor_on')
|
||||
->label('Coolant Motor On')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('tool_cut_dist_x_mm')
|
||||
->label('Tool Cut Dist X mm')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('tool_cut_dist_z_mm')
|
||||
->label('Tool Cut Dist Z mm')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('tool_cut_dist_mm')
|
||||
->label('Tool Cut Dist mm')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('tool_cut_time_s')
|
||||
->label('Total Cut Time S')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('insert_life_used_pct')
|
||||
->label('Insert Life Used PCT')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('axis_load_z')
|
||||
->label('Axis Load Z')
|
||||
->alignCenter()
|
||||
@@ -243,30 +279,6 @@ class CncMonitorDataResource extends Resource
|
||||
->alignCenter()
|
||||
->numeric()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('coolant_motor_on')
|
||||
->label('Coolant Motor On')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('tool_cut_dist_x_mm')
|
||||
->label('Tool Cut Dist X mm')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('tool_cut_dist_z_mm')
|
||||
->label('Tool Cut Dist Z mm')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('tool_cut_dist_mm')
|
||||
->label('Tool Cut Dist mm')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('tool_cut_time_s')
|
||||
->label('Total Cut Time S')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('insert_life_used_pct')
|
||||
->label('Insert Life Used PCT')
|
||||
->alignCenter()
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('created_at')
|
||||
->label('Created At')
|
||||
->alignCenter()
|
||||
|
||||
@@ -18,6 +18,9 @@ class CncMonitorData extends Model
|
||||
'state_duration_s',
|
||||
'program',
|
||||
'program_name',
|
||||
'work_offset_code',
|
||||
'work_x',
|
||||
'work_z',
|
||||
'feed_rate',
|
||||
'feed_override',
|
||||
'spindle_speed',
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<?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 work_offset_code TEXT DEFAULT NULL
|
||||
SQL;
|
||||
|
||||
DB::statement($sql1);
|
||||
|
||||
$sql2 = <<<'SQL'
|
||||
ALTER TABLE cnc_monitor_data
|
||||
ADD COLUMN work_x TEXT DEFAULT NULL
|
||||
SQL;
|
||||
|
||||
DB::statement($sql2);
|
||||
|
||||
$sql3 = <<<'SQL'
|
||||
ALTER TABLE cnc_monitor_data
|
||||
ADD COLUMN work_z TEXT DEFAULT NULL
|
||||
SQL;
|
||||
|
||||
DB::statement($sql3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
// Schema::table('cnc_monitor_data', function (Blueprint $table) {
|
||||
// //
|
||||
// });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user