[B]<?php
use[/B] Illuminate\Database\Migrations\Migration;
[B]use[/B] Illuminate\Database\Schema\Blueprint;
[B]use[/B] Illuminate\Support\Facades\Schema;
[B]class[/B] CreateJobsTable [B]extends[/B] Migration
{
/**
* Run the migrations.
*
* @return void
*/
public [B]function[/B] up()
{
Schema::create('jobs', [B]function[/B] (Blueprint $table) {
$table->bigIncrements('id');
$table->[B]string[/B]('queue')->index();
$table->longText('payload');
$table->unsignedTinyInteger('attempts');
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public [B]function[/B] down()
{
Schema::dropIfExists('jobs');
}
}
файл есть вот он