Skip to content

Commit d7c3ca8

Browse files
committed
wip
1 parent 8d7111d commit d7c3ca8

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::create('job_batches', function (Blueprint $table) {
15+
$table->string('id')->primary();
16+
$table->string('name');
17+
$table->integer('total_jobs');
18+
$table->integer('pending_jobs');
19+
$table->integer('failed_jobs');
20+
$table->longText('failed_job_ids');
21+
$table->mediumText('options')->nullable();
22+
$table->integer('cancelled_at')->nullable();
23+
$table->integer('created_at');
24+
$table->integer('finished_at')->nullable();
25+
});
26+
}
27+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::create('jobs', function (Blueprint $table) {
15+
$table->bigIncrements('id');
16+
$table->string('queue')->index();
17+
$table->longText('payload');
18+
$table->unsignedTinyInteger('attempts');
19+
$table->unsignedInteger('reserved_at')->nullable();
20+
$table->unsignedInteger('available_at');
21+
$table->unsignedInteger('created_at');
22+
});
23+
}
24+
};

0 commit comments

Comments
 (0)