|
11 | 11 | */
|
12 | 12 | public function up(): void
|
13 | 13 | {
|
14 |
| - Schema::create('jobs', function (Blueprint $table) { |
15 |
| - $table->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'); |
| 14 | + Schema::create('jobs', function (Blueprint $blueprint): void { |
| 15 | + $blueprint->id(); |
| 16 | + $blueprint->string('queue')->index(); |
| 17 | + $blueprint->longText('payload'); |
| 18 | + $blueprint->unsignedTinyInteger('attempts'); |
| 19 | + $blueprint->unsignedInteger('reserved_at')->nullable(); |
| 20 | + $blueprint->unsignedInteger('available_at'); |
| 21 | + $blueprint->unsignedInteger('created_at'); |
22 | 22 | });
|
23 | 23 |
|
24 |
| - Schema::create('job_batches', function (Blueprint $table) { |
25 |
| - $table->string('id')->primary(); |
26 |
| - $table->string('name'); |
27 |
| - $table->integer('total_jobs'); |
28 |
| - $table->integer('pending_jobs'); |
29 |
| - $table->integer('failed_jobs'); |
30 |
| - $table->longText('failed_job_ids'); |
31 |
| - $table->mediumText('options')->nullable(); |
32 |
| - $table->integer('cancelled_at')->nullable(); |
33 |
| - $table->integer('created_at'); |
34 |
| - $table->integer('finished_at')->nullable(); |
| 24 | + Schema::create('job_batches', function (Blueprint $blueprint): void { |
| 25 | + $blueprint->string('id')->primary(); |
| 26 | + $blueprint->string('name'); |
| 27 | + $blueprint->integer('total_jobs'); |
| 28 | + $blueprint->integer('pending_jobs'); |
| 29 | + $blueprint->integer('failed_jobs'); |
| 30 | + $blueprint->longText('failed_job_ids'); |
| 31 | + $blueprint->mediumText('options')->nullable(); |
| 32 | + $blueprint->integer('cancelled_at')->nullable(); |
| 33 | + $blueprint->integer('created_at'); |
| 34 | + $blueprint->integer('finished_at')->nullable(); |
35 | 35 | });
|
36 | 36 |
|
37 |
| - Schema::create('failed_jobs', function (Blueprint $table) { |
38 |
| - $table->id(); |
39 |
| - $table->string('uuid')->unique(); |
40 |
| - $table->text('connection'); |
41 |
| - $table->text('queue'); |
42 |
| - $table->longText('payload'); |
43 |
| - $table->longText('exception'); |
44 |
| - $table->timestamp('failed_at')->useCurrent(); |
| 37 | + Schema::create('failed_jobs', function (Blueprint $blueprint): void { |
| 38 | + $blueprint->id(); |
| 39 | + $blueprint->string('uuid')->unique(); |
| 40 | + $blueprint->text('connection'); |
| 41 | + $blueprint->text('queue'); |
| 42 | + $blueprint->longText('payload'); |
| 43 | + $blueprint->longText('exception'); |
| 44 | + $blueprint->timestamp('failed_at')->useCurrent(); |
45 | 45 | });
|
46 | 46 | }
|
47 | 47 |
|
|
0 commit comments