2023_12_19_081928_create_job_batches_table.php 951 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. */
  10. public function up(): void
  11. {
  12. Schema::create('job_batches', function (Blueprint $table) {
  13. $table->string('id')->primary();
  14. $table->string('name');
  15. $table->integer('total_jobs');
  16. $table->integer('pending_jobs');
  17. $table->integer('failed_jobs');
  18. $table->longText('failed_job_ids');
  19. $table->mediumText('options')->nullable();
  20. $table->integer('cancelled_at')->nullable();
  21. $table->integer('created_at');
  22. $table->integer('finished_at')->nullable();
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. */
  28. public function down(): void
  29. {
  30. Schema::dropIfExists('job_batches');
  31. }
  32. };