chore(udt-011): V015_ROLLBACK script for timezone views

This commit is contained in:
2026-04-18 09:39:00 -03:00
parent a51a7bc07e
commit 7913dd8bb9

View File

@@ -0,0 +1,37 @@
-- V015_ROLLBACK.sql
-- Reversa de V015__create_local_timezone_views.sql.
--
-- Elimina: dbo.v_AuditEvent_Local + dbo.v_SecurityEvent_Local
-- No toca datos: las tablas base AuditEvent y SecurityEvent no se modifican.
--
-- Idempotente: seguro para re-ejecutar.
-- Prerequisito: ningún objeto dependa de estas vistas (funciones, SPs, otras vistas).
SET QUOTED_IDENTIFIER ON;
SET ANSI_NULLS ON;
SET NOCOUNT ON;
GO
IF OBJECT_ID('dbo.v_AuditEvent_Local', 'V') IS NOT NULL
BEGIN
DROP VIEW dbo.v_AuditEvent_Local;
PRINT 'View dbo.v_AuditEvent_Local dropped.';
END
ELSE
PRINT 'View dbo.v_AuditEvent_Local does not exist — skip.';
GO
IF OBJECT_ID('dbo.v_SecurityEvent_Local', 'V') IS NOT NULL
BEGIN
DROP VIEW dbo.v_SecurityEvent_Local;
PRINT 'View dbo.v_SecurityEvent_Local dropped.';
END
ELSE
PRINT 'View dbo.v_SecurityEvent_Local does not exist — skip.';
GO
PRINT '';
PRINT 'V015 rolled back.';
PRINT ' - dbo.v_AuditEvent_Local removed.';
PRINT ' - dbo.v_SecurityEvent_Local removed.';
GO