From 6b3b2c93d9c14c7eab7b4db73dbb7e9dd24bd9c0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 20 Mar 2018 12:37:57 +0200 Subject: [PATCH] Fix for failed_jobs table --- ...8_03_08_150414_add_slack_notifications.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/database/migrations/2018_03_08_150414_add_slack_notifications.php b/database/migrations/2018_03_08_150414_add_slack_notifications.php index 820802bd12c0..6f75d11b63ab 100644 --- a/database/migrations/2018_03_08_150414_add_slack_notifications.php +++ b/database/migrations/2018_03_08_150414_add_slack_notifications.php @@ -64,6 +64,16 @@ class AddSlackNotifications extends Migration $table->index('user_id4'); $table->index('user_id5'); }); + + Schema::table('jobs', function (Blueprint $table) { + $table->dropIndex('jobs_queue_reserved_reserved_at_index'); + $table->dropColumn('reserved'); + $table->index(['queue', 'reserved_at']); + }); + + Schema::table('failed_jobs', function (Blueprint $table) { + $table->longText('exception')->after('payload'); + }); } /** @@ -85,5 +95,15 @@ class AddSlackNotifications extends Migration $table->dropColumn('auto_archive_quote'); $table->dropColumn('auto_email_invoice'); }); + + Schema::table('jobs', function (Blueprint $table) { + $table->tinyInteger('reserved')->unsigned(); + $table->index(['queue', 'reserved', 'reserved_at']); + $table->dropIndex('jobs_queue_reserved_at_index'); + }); + + Schema::table('failed_jobs', function (Blueprint $table) { + $table->dropColumn('exception'); + }); } }