Fix issue with regex rule on 'threads' column, fix StyleCI issues on migration

This commit is contained in:
Matthew Penner 2020-04-03 18:59:47 -06:00
parent 829f05a2c7
commit 49f0421e90
2 changed files with 3 additions and 3 deletions

View file

@ -110,7 +110,7 @@ class Server extends Validable
'swap' => 'required|numeric|min:-1',
'io' => 'required|numeric|between:10,1000',
'cpu' => 'required|numeric|min:0',
'threads' => 'sometimes|regex:/^[0-9-,]+$/',
'threads' => 'nullable|regex:/^[0-9-,]+$/',
'oom_disabled' => 'sometimes|boolean',
'disk' => 'required|numeric|min:0',
'allocation_id' => 'required|bail|unique:servers|exists:allocations,id',

View file

@ -1,8 +1,8 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddThreadsColumnToServersTable extends Migration
{