hasTable("queue_jobs")) { $builder->create('queue_jobs', function (Table $table) { $table->bigInteger("id", true, false); $table->primary("id"); $table->string('queue'); $table->index("queue","queue"); $table->text("payload"); $table->unsignedSmallInteger('attempts'); $table->unsignedInteger('reserved_at')->setNotnull(false); $table->unsignedInteger('available_at'); $table->unsignedInteger('created_at'); }); } if(!$schema->hasTable("queue_failed_jobs")) { $builder->create('queue_failed_jobs', function (Table $table) { $table->bigInteger("id", true, false); $table->primary("id"); $table->text('connection'); $table->text('queue'); $table->text('payload'); $table->text('exception'); $table->timestamp('failed_at')->setDefault('CURRENT_TIMESTAMP'); }); } } /** * @param Schema $schema */ public function down(Schema $schema):void { $schema->dropTable("failed_jobs"); $schema->dropTable("jobs"); } }