ranjith-dev #250
@@ -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()
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
// //
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user