Files
docker-rconfig/database/migrations/2019_07_29_062256_create_jobs_table.php
2024-10-19 18:23:55 +00:00

36 lines
831 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateJobsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('jobs', function (Blueprint $table) {
$table->bigInteger('id', true)->unsigned();
$table->string('queue')->index();
$table->text('payload', 65535);
$table->boolean('attempts');
$table->integer('reserved_at')->unsigned()->nullable();
$table->integer('available_at')->unsigned();
$table->integer('created_at')->unsigned();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('jobs');
}
}