-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
migrations-upgrade/2018_02_05_000000_create_queue_monitor_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class CreateQueueMonitorTable extends Migration | ||
{ | ||
public function up() | ||
{ | ||
Schema::create(config('queue-monitor.table'), function (Blueprint $table) { | ||
$table->increments('id'); | ||
|
||
$table->string('job_id')->index(); | ||
$table->string('name')->nullable(); | ||
$table->string('queue')->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->integer('progress')->nullable(); | ||
|
||
$table->longText('exception')->nullable(); | ||
$table->text('exception_message')->nullable(); | ||
$table->text('exception_class')->nullable(); | ||
|
||
$table->longText('data')->nullable(); | ||
}); | ||
} | ||
|
||
public function down() | ||
{ | ||
Schema::drop(config('queue-monitor.table')); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
454f084
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should this work for 5.2.0 in terms of the core Laravel change in 11.x regarding the ->float() field type?
I've just removed the further arguments from ->float() in the create and update migrations for queue-monitor.table during my Laravel 11 upgrade..