From 225aa1499e37faf9d38257caabbadc68d78b427e Mon Sep 17 00:00:00 2001
From: Lucas Faria Mendes <lucas.fariamo08@gmail.com>
Date: Mon, 30 Mar 2026 12:29:41 -0300
Subject: decompiler.com

---
 Decompiler/Gestor.Application.Migration.Files.20240322_235.SQL | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 Decompiler/Gestor.Application.Migration.Files.20240322_235.SQL

(limited to 'Decompiler/Gestor.Application.Migration.Files.20240322_235.SQL')

diff --git a/Decompiler/Gestor.Application.Migration.Files.20240322_235.SQL b/Decompiler/Gestor.Application.Migration.Files.20240322_235.SQL
new file mode 100644
index 0000000..a2fcd41
--- /dev/null
+++ b/Decompiler/Gestor.Application.Migration.Files.20240322_235.SQL
@@ -0,0 +1,6 @@
+﻿IF (EXISTS ( SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'ToleranciaPremio' AND TABLE_NAME = 'ciaseg') 
+AND EXISTS ( SELECT DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'ToleranciaPremio' AND DATA_TYPE = 'nvarchar' AND TABLE_NAME = 'ciaseg')) 
+BEGIN
+	UPDATE ciaseg SET ToleranciaPremio = NULL;
+	ALTER TABLE ciaseg ALTER COLUMN ToleranciaPremio numeric(8,2) NULL;
+END
\ No newline at end of file
-- 
cgit v1.2.3

