create job for road observed problems

This commit is contained in:
2025-02-16 15:32:17 +03:30
parent 8e2857f3c2
commit 7accc9b389
8 changed files with 298 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
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.
*/
public function down(): void
{
Schema::dropIfExists('jobs');
}
};

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('edarate_ostani', function (Blueprint $table) {
$table->text('sub_items_for_confirm')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('edarate_ostani', function (Blueprint $table) {
$table->dropColumn('sub_items_for_confirm');
});
}
};