use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateQueueBatchesTable extends Migration
{
public function up()
{
Schema::create('queue_batches', function (Blueprint $table) {
$table->id();
$table->bigInteger('queueable_id')->nullable();
$table->string('queueable_type')->nullable();
$table->string('connection')->nullable();
$table->string('queue')->nullable();
$table->json('payload');
$table->timestamp('created_at')->useCurrent();
$table->timestamp('failed_at')->nullable();
$table->timestamp('completed_at')->nullable();
});
}
public function down()
{
Schema::dropIfExists('queue_batches');
}
}