feat(variants): implement restoration of previously suspended variants with usable dates

This commit is contained in:
2026-09-16 09:05:21 -03:00
parent 44178d72a5
commit 3a4f6b64d2
5 changed files with 124 additions and 21 deletions

View File

@@ -0,0 +1,17 @@
<?php
use App\Domains\Catalog\Services\VariantReplacementService;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
public function up(): void
{
app(VariantReplacementService::class)->restorePreviouslySuspendedVariants();
}
public function down(): void
{
// Historical variants and their purchases must remain intact.
}
};