forked from Alex/Pterodactyl-Panel
cc90fa3e63
Updates power and console controls to match new daemon output and API.
32 lines
616 B
PHP
32 lines
616 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class AddHttpsToggle extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('nodes', function (Blueprint $table) {
|
|
$table->boolean('https')->after('fqdn')->default(false);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('nodes', function (Blueprint $table) {
|
|
$table->dropColumn('https');
|
|
});
|
|
}
|
|
}
|