<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('prefix_goliath_flags', function (Blueprint $table) {
            $table->integer('flag_src_limit_pps')->nullable();
            $table->integer('flag_src_limit_mbps')->nullable();
            $table->tinyInteger('flag_drop_unexpected_protocols')->nullable();
            $table->tinyInteger('flag_drop_non_core_protocols')->nullable();
            $table->tinyInteger('flag_drop_udp_to_tcp_ports')->nullable();
            $table->tinyInteger('flag_udp_established_lane')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        // Irrelevant, we don't really go "back" with Creatia when it comes to these things, we'd just load a backup.
    }
};
