diff --git a/database/migrations/2016_09_06_152900_add_exception_column_to_failed_jobs_table.php b/database/migrations/2016_09_06_152900_add_exception_column_to_failed_jobs_table.php deleted file mode 100644 index 0f0598cb..00000000 --- a/database/migrations/2016_09_06_152900_add_exception_column_to_failed_jobs_table.php +++ /dev/null @@ -1,31 +0,0 @@ -text('exception'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('failed_jobs', function (Blueprint $table) { - $table->dropColumn('exception'); - }); - } -} diff --git a/database/migrations/2022_11_21_184127_remove_old_failed_jobs_table.php b/database/migrations/2022_11_21_184127_remove_old_failed_jobs_table.php new file mode 100644 index 00000000..9c2cc1d8 --- /dev/null +++ b/database/migrations/2022_11_21_184127_remove_old_failed_jobs_table.php @@ -0,0 +1,27 @@ +increments('id'); + $table->id(); + $table->string('uuid')->unique(); $table->text('connection'); $table->text('queue'); $table->longText('payload'); - $table->timestamp('failed_at'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); }); } @@ -28,6 +31,6 @@ class CreateFailedJobsTable extends Migration */ public function down() { - Schema::drop('failed_jobs'); + Schema::dropIfExists('failed_jobs'); } -} +}; diff --git a/package-lock.json b/package-lock.json index e3e6c626..c29c7cc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "compression-webpack-plugin": "^10.0.0", "css-loader": "^6.7.2", "cssnano": "^5.1.14", - "eslint": "^8.27.0", + "eslint": "^8.28.0", "eslint-webpack-plugin": "^3.2.0", "mini-css-extract-plugin": "^2.7.0", "postcss": "^8.4.19", @@ -3169,9 +3169,9 @@ } }, "node_modules/eslint": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz", - "integrity": "sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==", + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz", + "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==", "dev": true, "dependencies": { "@eslint/eslintrc": "^1.3.3", @@ -9442,9 +9442,9 @@ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" }, "eslint": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz", - "integrity": "sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==", + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz", + "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==", "dev": true, "requires": { "@eslint/eslintrc": "^1.3.3", diff --git a/package.json b/package.json index 9284d36c..aaec45be 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "compression-webpack-plugin": "^10.0.0", "css-loader": "^6.7.2", "cssnano": "^5.1.14", - "eslint": "^8.27.0", + "eslint": "^8.28.0", "eslint-webpack-plugin": "^3.2.0", "mini-css-extract-plugin": "^2.7.0", "postcss": "^8.4.19",