Skip to content

Commit

Permalink
Merge pull request #178 from laravel-enso/feature/addsJobBatch
Browse files Browse the repository at this point in the history
Feature/adds job batch
  • Loading branch information
aocneanu committed Nov 30, 2020
2 parents 28f23e4 + 91c139d commit 378420b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions database/migrations/2020_11_27_129000_create_job_batches_table.php
@@ -0,0 +1,29 @@
<?php

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

class CreateJobBatchesTable extends Migration
{
public function up()
{
Schema::create('job_batches', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('name');
$table->integer('total_jobs');
$table->integer('pending_jobs');
$table->integer('failed_jobs');
$table->text('failed_job_ids');
$table->text('options')->nullable();
$table->integer('cancelled_at')->nullable();
$table->integer('created_at');
$table->integer('finished_at')->nullable();
});
}

public function down()
{
Schema::dropIfExists('job_batches');
}
}

0 comments on commit 378420b

Please sign in to comment.