This commit is contained in:
2022-08-04 08:39:11 +07:00
parent 4fb1723b76
commit ab94607e81
5 changed files with 198 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ return new class extends Migration
public function up()
{
Schema::create('import_logs', function (Blueprint $table) {
$table->uuid()->primary();
$table->id();
$table->morphs('importable');
$table->string('type')->nullable();
$table->string('file_path')->nullable();

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('jobs', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('queue')->index();
$table->longText('payload');
$table->unsignedTinyInteger('attempts');
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('jobs');
}
};