<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

return new class extends Migration
{
    private const TENANT_CODE = 'desfile_pura_tendencia';

    public function up(): void
    {
        DB::table('tenants')
            ->where('codigo', self::TENANT_CODE)
            ->update(['cart_editing_policy' => 'full']);
    }

    public function down(): void
    {
        DB::table('tenants')
            ->where('codigo', self::TENANT_CODE)
            ->update(['cart_editing_policy' => 'disabled']);
    }
};
