From 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 Mon Sep 17 00:00:00 2001
From: Lucas Faria Mendes <lucas.fariamo08@gmail.com>
Date: Mon, 30 Mar 2026 10:38:18 -0300
Subject: chore: location

---
 Gestor.Application.Migration.Files.20211223_179.SQL | 12 ------------
 1 file changed, 12 deletions(-)
 delete mode 100644 Gestor.Application.Migration.Files.20211223_179.SQL

(limited to 'Gestor.Application.Migration.Files.20211223_179.SQL')

diff --git a/Gestor.Application.Migration.Files.20211223_179.SQL b/Gestor.Application.Migration.Files.20211223_179.SQL
deleted file mode 100644
index ea47ee1..0000000
--- a/Gestor.Application.Migration.Files.20211223_179.SQL
+++ /dev/null
@@ -1,12 +0,0 @@
-DECLARE @SQL NVARCHAR ( MAX ) = N'INSERT INTO auto (iditem, obs) SELECT i.iditem, r.obs FROM item i INNER JOIN documento d on d.iddocumento = i.iddocumento INNER JOIN controle c on c.idcontrole = d.idcontrole INNER JOIN riscosdiversos r on r.iditem = i.iditem WHERE c.idramo = 37;' 
-DECLARE @sqlDelete NVARCHAR ( MAX ) = N'DELETE FROM riscosdiversos WHERE iditem in (SELECT i.iditem FROM item i INNER JOIN documento d on d.iddocumento = i.iddocumento INNER JOIN controle c on c.idcontrole = d.idcontrole INNER JOIN riscosdiversos r on r.iditem = i.iditem WHERE c.idramo = 37);'
-IF
-	EXISTS (
-SELECT 1 FROM item i INNER JOIN documento d ON d.iddocumento = i.iddocumento
-	INNER JOIN controle c ON c.idcontrole = d.idcontrole
-	INNER JOIN riscosdiversos r ON r.iditem = i.iditem 
-WHERE
-	c.idramo = 37 
-	) BEGIN
-	EXEC sp_executesql @SQL EXEC sp_executesql @sqlDelete 
-END
\ No newline at end of file
-- 
cgit v1.2.3

