home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

2019_08_19_000000_create_failed_jobs_table.php (768B)


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