Add http(s) toggle for nodes, update power page

Updates power and console controls to match new daemon output and API.
This commit is contained in:
Dane Everitt 2015-12-31 17:55:42 -05:00
parent 264431a271
commit cc90fa3e63
4 changed files with 79 additions and 114 deletions

View file

@ -0,0 +1,31 @@
<?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');
});
}
}