1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-28 04:42:29 +01:00
Pterodactyl-Panel/database/migrations/2015_12_31_210400_add_https_toggle.php
Dane Everitt cc90fa3e63 Add http(s) toggle for nodes, update power page
Updates power and console controls to match new daemon output and API.
2015-12-31 17:55:42 -05:00

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');
});
}
}