Added the actual logic

This commit is contained in:
stanjg 2018-05-04 15:02:51 +02:00
parent 7cf79a12cb
commit 86c8ecdcdf
No known key found for this signature in database
GPG key ID: 27D9DF9D28935303
7 changed files with 101 additions and 2 deletions

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddMaintenanceToNodes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('nodes', function (Blueprint $table) {
$table->boolean('maintenance')->after('behind_proxy')->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('nodes', function (Blueprint $table) {
$table->dropColumn('maintenance');
});
}
}