feat(ticket): add source IDs to tickets and update related services and tests

This commit is contained in:
2026-07-21 12:27:26 -03:00
parent c0978033c1
commit 38f74739da
6 changed files with 63 additions and 6 deletions

View File

@@ -0,0 +1,23 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('tickets', function (Blueprint $table): void {
$table->unsignedBigInteger('source_catalog_item_id')->nullable()->after('description');
$table->unsignedBigInteger('source_variant_id')->nullable()->after('source_catalog_item_id');
});
}
public function down(): void
{
Schema::table('tickets', function (Blueprint $table): void {
$table->dropColumn(['source_catalog_item_id', 'source_variant_id']);
});
}
};