Skip to content

Commit

Permalink
fuck taylor otwell fuckface
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed Mar 13, 2024
1 parent 04a732d commit b3105e6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions migrations/2018_02_05_000000_create_queue_monitor_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,31 @@
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use romanzipp\QueueMonitor\Enums\MonitorStatus;

class CreateQueueMonitorTable extends Migration
{
public function up()
{
Schema::create(config('queue-monitor.table'), function (Blueprint $table) {
$table->increments('id');
$table->uuid('job_uuid')->nullable();

$table->string('job_id')->index();
$table->string('name')->nullable();
$table->string('queue')->nullable();

$table->unsignedInteger('status')->default(MonitorStatus::RUNNING);

$table->dateTime('queued_at')->nullable();
$table->timestamp('started_at')->nullable()->index();
$table->string('started_at_exact')->nullable();

$table->timestamp('finished_at')->nullable();
$table->string('finished_at_exact')->nullable();

$table->float('time_elapsed', 12, 6)->nullable()->index();

$table->boolean('failed')->default(false)->index();

$table->integer('attempt')->default(0);
$table->boolean('retried')->default(false);
$table->integer('progress')->nullable();

$table->longText('exception')->nullable();
Expand Down

0 comments on commit b3105e6

Please sign in to comment.