<?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::connection('log')->create('speed_hack', function (Blueprint $table) {
            $table->integer('pid')->nullable();
            $table->dateTime('time')->nullable();
            $table->integer('x')->nullable();
            $table->integer('y')->nullable();
            $table->string('hack_count', 20)->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::connection('log')->dropIfExists('speed_hack');
    }
};
