File: //var/www/quadcode/database/migrations/2024_02_22_170000_create_bitrix_queue.php
<?php
use App\Models\BitrixQueue;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBitrixQueue extends Migration
{
public function up()
{
Schema::create('bitrix_queue', function (Blueprint $table) {
$table->id();
$table->text('data');
$table->integer('status')->default(BitrixQueue::STATUS_NEW);
$table->text('error')->nullable();
$table->string('lead_id')->nullable();
$table->timestamp('lead_created_at')->nullable();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('bitrix_queue');
}
}