Skip to content

Commit 49f0421

Browse files
committed
Fix issue with regex rule on 'threads' column, fix StyleCI issues on migration
1 parent 829f05a commit 49f0421

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/Models/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class Server extends Validable
110110
'swap' => 'required|numeric|min:-1',
111111
'io' => 'required|numeric|between:10,1000',
112112
'cpu' => 'required|numeric|min:0',
113-
'threads' => 'sometimes|regex:/^[0-9-,]+$/',
113+
'threads' => 'nullable|regex:/^[0-9-,]+$/',
114114
'oom_disabled' => 'sometimes|boolean',
115115
'disk' => 'required|numeric|min:0',
116116
'allocation_id' => 'required|bail|unique:servers|exists:allocations,id',

database/migrations/2020_04_03_203624_add_threads_column_to_servers_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Illuminate\Database\Migrations\Migration;
4-
use Illuminate\Database\Schema\Blueprint;
53
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
66

77
class AddThreadsColumnToServersTable extends Migration
88
{

0 commit comments

Comments
 (0)