Skip to content

Commit

Permalink
add uuid column to failed jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislav-chynoransky authored and eronisko committed Jan 12, 2024
1 parent 41b6119 commit 36a8994
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

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

return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('failed_jobs', function (Blueprint $table) {
$table
->string('uuid')
->after('id')
->nullable()
->unique();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('failed_jobs', function (Blueprint $table) {
$table->dropColumn('uuid');
});
}
};

0 comments on commit 36a8994

Please sign in to comment.