2020_08_21_145711_create_failed_jobs_table.php 666 B

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