Fix issue with regex rule on 'threads' column, fix StyleCI issues on migration
This commit is contained in:
parent
829f05a2c7
commit
49f0421e90
2 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ class Server extends Validable
|
||||||
'swap' => 'required|numeric|min:-1',
|
'swap' => 'required|numeric|min:-1',
|
||||||
'io' => 'required|numeric|between:10,1000',
|
'io' => 'required|numeric|between:10,1000',
|
||||||
'cpu' => 'required|numeric|min:0',
|
'cpu' => 'required|numeric|min:0',
|
||||||
'threads' => 'sometimes|regex:/^[0-9-,]+$/',
|
'threads' => 'nullable|regex:/^[0-9-,]+$/',
|
||||||
'oom_disabled' => 'sometimes|boolean',
|
'oom_disabled' => 'sometimes|boolean',
|
||||||
'disk' => 'required|numeric|min:0',
|
'disk' => 'required|numeric|min:0',
|
||||||
'allocation_id' => 'required|bail|unique:servers|exists:allocations,id',
|
'allocation_id' => 'required|bail|unique:servers|exists:allocations,id',
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
class AddThreadsColumnToServersTable extends Migration
|
class AddThreadsColumnToServersTable extends Migration
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue