From 783f95ca7ea4c30ac18e162e6dec76bb6eee8558 Mon Sep 17 00:00:00 2001 From: cp6 Date: Sun, 20 Feb 2022 00:06:32 +1100 Subject: [PATCH] Update YABs cpu to be cpu_model Update YABs cpu to be cpu_model --- app/Http/Controllers/YabsController.php | 2 +- app/Models/Yabs.php | 2 +- database/migrations/2022_02_05_104355_create_yabs_table.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/YabsController.php b/app/Http/Controllers/YabsController.php index 8d11b39..e81611e 100644 --- a/app/Http/Controllers/YabsController.php +++ b/app/Http/Controllers/YabsController.php @@ -52,7 +52,7 @@ class YabsController extends Controller 'output_date' => $yabs['output_date'], 'cpu_cores' => $yabs['cpu_cores'], 'cpu_freq' => $yabs['cpu_freq'], - 'cpu' => $yabs['cpu'], + 'cpu_model' => $yabs['cpu'], 'ram' => $yabs['ram'], 'ram_type' => $yabs['ram_type'], 'ram_mb' => $yabs['ram_mb'], diff --git a/app/Models/Yabs.php b/app/Models/Yabs.php index b627d47..2c5e8e2 100644 --- a/app/Models/Yabs.php +++ b/app/Models/Yabs.php @@ -13,5 +13,5 @@ class Yabs extends Model protected $table = 'yabs'; - protected $fillable = ['id', 'server_id', 'has_ipv6', 'aes', 'vm', 'output_date', 'cpu_cores', 'cpu_freq', 'cpu', 'ram', 'ram_type', 'ram_mb', 'disk', 'disk_type', 'disk_gb', 'gb5_single', 'gb5_multi', 'gb5_id', '4k', '4k_type', '4k_as_mbps', '64k', '64k_type', '64k_as_mbps', '512k', '512k_type', '512k_as_mbps', '1m', '1m_type', '1m_as_mbps', 'location', 'send', 'send_type', 'send_as_mbps', 'receive', 'receive_type', 'receive_as_mbps']; + protected $fillable = ['id', 'server_id', 'has_ipv6', 'aes', 'vm', 'output_date', 'cpu_cores', 'cpu_freq', 'cpu_model', 'ram', 'ram_type', 'ram_mb', 'disk', 'disk_type', 'disk_gb', 'gb5_single', 'gb5_multi', 'gb5_id', '4k', '4k_type', '4k_as_mbps', '64k', '64k_type', '64k_as_mbps', '512k', '512k_type', '512k_as_mbps', '1m', '1m_type', '1m_as_mbps', 'location', 'send', 'send_type', 'send_as_mbps', 'receive', 'receive_type', 'receive_as_mbps']; } diff --git a/database/migrations/2022_02_05_104355_create_yabs_table.php b/database/migrations/2022_02_05_104355_create_yabs_table.php index 991d26b..e51dc21 100644 --- a/database/migrations/2022_02_05_104355_create_yabs_table.php +++ b/database/migrations/2022_02_05_104355_create_yabs_table.php @@ -21,7 +21,7 @@ class CreateYabsTable extends Migration $table->dateTime('output_date'); $table->tinyInteger('cpu_cores'); $table->float('cpu_freq'); - $table->string('cpu'); + $table->string('cpu_model'); $table->float('ram'); $table->char('ram_type', 2); $table->float('ram_mb');