<?php

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

class FiveM extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('prefix_goliath_flags', function (Blueprint $table) {
            $table->tinyInteger('flag_fivem')->nullable();
        });

        Schema::table('goliath_asn_attributes', function (Blueprint $table) {
            $table->tinyInteger('default_udp_tracking')->nullable();
            $table->tinyInteger('default_tcp_eviction')->nullable();
            $table->tinyInteger('default_fivem')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('prefix_goliath_flags', function (Blueprint $table) {
            $table->dropColumn('flag_fivem');
        });

        Schema::table('goliath_asn_attributes', function (Blueprint $table) {
            $table->dropColumn('default_udp_tracking');
            $table->dropColumn('default_tcp_eviction');
            $table->dropColumn('default_fivem');
        });
    }
}
