File: /var/www/quadcode-site/database/migrations/2023_04_18_112000_create_pipedrive_queue.php
<?php
use App\Models\PipedriveQueue;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePipedriveQueue extends Migration
{
public function up()
{
Schema::create('pipedrive_queue', function (Blueprint $table) {
$table->id();
$table->text('data');
$table->integer('status')->default(PipedriveQueue::STATUS_NEW);
$table->text('error')->nullable();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('pipedrive_queue');
}
}