From 3ac44d90494d0aa06d6b91d92ea82ce8770ebe06 Mon Sep 17 00:00:00 2001 From: claudio Date: Fri, 10 Aug 2018 13:26:14 +0000 Subject: [PATCH] fixes bug#11829 dev:lucas qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@84125 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180730_1812__mantis11476.sql | 6 ++++-- src/db/migration/V20180802_1442__mantis11645.sql | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/db/migration/V20180730_1812__mantis11476.sql b/src/db/migration/V20180730_1812__mantis11476.sql index 82916cca7..c10edb112 100644 --- a/src/db/migration/V20180730_1812__mantis11476.sql +++ b/src/db/migration/V20180730_1812__mantis11476.sql @@ -2,6 +2,8 @@ declare column_exists exception; pragma exception_init (column_exists , -01430); begin - execute immediate 'ALTER TABLE EMPRESA ADD INDUTILIZARESOLUCAO NUMBER(1,0) DEFAULT 0'; + execute immediate 'ALTER TABLE EMPRESA ADD INDUTILIZARESOLUCAO NUMBER(1,0)'; exception when column_exists then null; -end; \ No newline at end of file +end; + +UPDATE EMPRESA SET INDUTILIZARESOLUCAO = 0 WHERE INDUTILIZARESOLUCAO IS NULL; \ No newline at end of file diff --git a/src/db/migration/V20180802_1442__mantis11645.sql b/src/db/migration/V20180802_1442__mantis11645.sql index c397d89c7..31e2c6a44 100644 --- a/src/db/migration/V20180802_1442__mantis11645.sql +++ b/src/db/migration/V20180802_1442__mantis11645.sql @@ -2,6 +2,8 @@ declare column_exists exception; pragma exception_init (column_exists , -01430); begin - execute immediate 'ALTER TABLE EMPRESA ADD INDUTIFOLIOLOCAPREPAGOABERTO NUMBER(1,0) DEFAULT 0'; + execute immediate 'ALTER TABLE EMPRESA ADD INDUTIFOLIOLOCAPREPAGOABERTO NUMBER(1,0)'; exception when column_exists then null; -end; \ No newline at end of file +end; + +UPDATE EMPRESA SET INDUTIFOLIOLOCAPREPAGOABERTO = 0 WHERE INDUTIFOLIOLOCAPREPAGOABERTO IS NULL; \ No newline at end of file