Files
pterodactyl-panel/database/legacy-migrations/2017_04_27_223629_AddAbilityToDefineConnectionOverSSLWithDaemonBehindProxy.php

31 lines
709 B
PHP
Raw Permalink Normal View History

<?php
2026-10-05 18:10:18 -04:00
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
2026-10-05 18:10:18 -04:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddAbilityToDefineConnectionOverSSLWithDaemonBehindProxy extends Migration
{
/**
* Run the migrations.
*/
2024-10-21 19:18:20 -06:00
public function up(): void
{
2026-10-05 18:10:18 -04:00
Schema::table('nodes', function (Blueprint $table): void {
$table->boolean('behind_proxy')->after('scheme')->default(false);
});
}
/**
* Reverse the migrations.
*/
2024-10-21 19:18:20 -06:00
public function down(): void
{
2026-10-05 18:10:18 -04:00
Schema::table('nodes', function (Blueprint $table): void {
$table->dropColumn('behind_proxy');
});
}
}