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