feat(bd): V020 permiso + V022 seed ChargeableCharConfig (PRC-001)
This commit is contained in:
23
database/migrations/V022_ROLLBACK.sql
Normal file
23
database/migrations/V022_ROLLBACK.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
-- V022_ROLLBACK.sql
|
||||
-- PRC-001: Reversa de V022__seed_chargeable_char_config.sql.
|
||||
--
|
||||
-- Elimina las 4 filas globales de seed (MedioId NULL, símbolos $/%/!/¡, ValidTo NULL).
|
||||
-- Solo elimina las filas vigentes (ValidTo IS NULL) para no romper el historial temporal.
|
||||
--
|
||||
-- ADVERTENCIA: si alguna de estas filas fue cerrada (ValidTo SET), el rollback las ignora
|
||||
-- (ya no son vigentes). La historia temporal queda intacta.
|
||||
-- Run on: SIGCM2 (dev), SIGCM2_Test_App, SIGCM2_Test_Api.
|
||||
|
||||
SET QUOTED_IDENTIFIER ON;
|
||||
SET ANSI_NULLS ON;
|
||||
SET NOCOUNT ON;
|
||||
GO
|
||||
|
||||
DELETE FROM dbo.ChargeableCharConfig
|
||||
WHERE MedioId IS NULL
|
||||
AND Symbol IN (N'$', N'%', N'!', N'¡')
|
||||
AND ValidTo IS NULL;
|
||||
GO
|
||||
|
||||
PRINT 'V022 rollback complete — global seed rows ($, %, !, ¡) removed.';
|
||||
GO
|
||||
Reference in New Issue
Block a user