Add migration for 'threads' column, fix errors on some admin pages, add validation rule for 'threads' column

This commit is contained in:
Matthew Penner 2020-04-03 18:50:07 -06:00
parent 85e3945cd7
commit 829f05a2c7
6 changed files with 44 additions and 4 deletions

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddThreadsColumnToServersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('servers', function (Blueprint $table) {
$table->string('threads')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('servers', function (Blueprint $table) {
$table->dropColumn('threads');
});
}
}