| 1 | <?php | = | 1 | <?php |
| 2 | 2 | |||
| 3 | use Illuminate\Database\Migrations\Migration; | 3 | use Illuminate\Database\Migrations\Migration; | |
| 4 | use Illuminate\Database\Schema\Blueprint; | 4 | use Illuminate\Database\Schema\Blueprint; | |
| 5 | use Illuminate\Support\Facades\Schema; | 5 | use Illuminate\Support\Facades\Schema; | |
| 6 | 6 | |||
| 7 | class CreateFailedJobsTable extends Migration | 7 | class CreateFailedJobsTable extends Migration | |
| 8 | { | 8 | { | |
| 9 | /** | 9 | /** | |
| 10 | * Run the migrations. | 10 | * Run the migrations. | |
| 11 | * | 11 | * | |
| 12 | * @return void | 12 | * @return void | |
| 13 | */ | 13 | */ | |
| 14 | public function up() | 14 | public function up() | |
| 15 | { | 15 | { | |
| 16 | Schema::create('failed_jobs', function (Blueprint $table) { | 16 | Schema::create('failed_jobs', function (Blueprint $table) { | |
| 17 | $table->bigIncrements('id'); | <> | 17 | $table->id(); |
| 18 | $table->text('connection'); | = | 18 | $table->text('connection'); |
| 19 | $table->text('queue'); | 19 | $table->text('queue'); | |
| 20 | $table->longText('payload'); | 20 | $table->longText('payload'); | |
| 21 | $table->longText('exception'); | 21 | $table->longText('exception'); | |
| 22 | $table->timestamp('failed_at')->useCurrent(); | 22 | $table->timestamp('failed_at')->useCurrent(); | |
| 23 | }); | 23 | }); | |
| 24 | } | 24 | } | |
| 25 | 25 | |||
| 26 | /** | 26 | /** | |
| 27 | * Reverse the migrations. | 27 | * Reverse the migrations. | |
| 28 | * | 28 | * | |
| 29 | * @return void | 29 | * @return void | |
| 30 | */ | 30 | */ | |
| 31 | public function down() | 31 | public function down() | |
| 32 | { | 32 | { | |
| 33 | Schema::dropIfExists('failed_jobs'); | 33 | Schema::dropIfExists('failed_jobs'); | |
| 34 | } | 34 | } | |
| 35 | } | 35 | } |