From 0414422ad8cf700d7595edacd6a016381abc7812 Mon Sep 17 00:00:00 2001 From: gleimar Date: Tue, 6 Mar 2018 13:04:20 +0000 Subject: [PATCH] =?UTF-8?q?ajustes=20nos=20sql's=20na=20execu=C3=A7=C3=A3o?= =?UTF-8?q?=20em=20uma=20base=20zerada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@79550 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20161129_1446__mantis8306.sql | 2 ++ src/db/migration/V20171127_1504__mantis9201.sql | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/db/migration/V20161129_1446__mantis8306.sql b/src/db/migration/V20161129_1446__mantis8306.sql index e8bb88577..703f62aea 100644 --- a/src/db/migration/V20161129_1446__mantis8306.sql +++ b/src/db/migration/V20161129_1446__mantis8306.sql @@ -7,6 +7,7 @@ begin START WITH 1 CACHE 20 NOORDER NOCYCLE'; exception when object_exists then null; end; +/ declare object_exists exception; pragma exception_init (object_exists , -00955); @@ -15,3 +16,4 @@ begin ADD (TIPOMOTIVOCANCEL VARCHAR2(20))'; exception when object_exists then null; end; +/ \ No newline at end of file diff --git a/src/db/migration/V20171127_1504__mantis9201.sql b/src/db/migration/V20171127_1504__mantis9201.sql index a3e489eb2..2c170fa95 100644 --- a/src/db/migration/V20171127_1504__mantis9201.sql +++ b/src/db/migration/V20171127_1504__mantis9201.sql @@ -1,8 +1,8 @@ declare column_exists exception; - pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE MONITORAMENTO_CRZ MODIFY (EMPRESA_ID NULL)'; - exception when column_exists then null; + exception when others then null; end; \ No newline at end of file