-- V025_ROLLBACK.sql
-- Reversa de V025 — elimina los overrides demo de ChargeableCharConfig.
-- Los globales V022/V024 (ProductTypeId IS NULL) NO se tocan.

SET QUOTED_IDENTIFIER ON;
SET ANSI_NULLS ON;
SET NOCOUNT ON;
GO

DELETE FROM dbo.ChargeableCharConfig
 WHERE ProductTypeId IS NOT NULL
   AND ValidTo IS NULL
   AND Symbol IN (N'$', N'%', N'!', N'¡')
   AND ProductTypeId IN (
       SELECT Id FROM dbo.ProductType
        WHERE Nombre IN ('Clasificado', 'Notables', 'Fúnebres', 'Funebres')
   );

PRINT 'V025 rolled back — demo overrides eliminated. Globales V022/V024 preservados.';
GO
