From 07fd4a93dcfd18b17ce5d70ec671f51c0a81f5c6 Mon Sep 17 00:00:00 2001 From: "alexandre.lima" Date: Mon, 17 Jul 2017 12:25:02 +0000 Subject: [PATCH] Fixes Bug #0009192 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@71423 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20170717_0858__mantis9192.sql | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/db/migration/V20170717_0858__mantis9192.sql b/src/db/migration/V20170717_0858__mantis9192.sql index 5f3a49a38..270f43a59 100644 --- a/src/db/migration/V20170717_0858__mantis9192.sql +++ b/src/db/migration/V20170717_0858__mantis9192.sql @@ -1,3 +1,20 @@ -ALTER TABLE SEGURO_KM ADD TIPO_SEGURO varchar2(10); -ALTER TABLE TARIFA ADD IMPORTETPP number(7,2); -ALTER TABLE TARIFA_OFICIAL ADD IMPORTETPP number(7,2); \ No newline at end of file +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE SEGURO_KM ADD TIPO_SEGURO varchar2(10);'; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE TARIFA ADD IMPORTETPP number(7,2);'; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE TARIFA_OFICIAL ADD IMPORTETPP number(7,2);'; +end; \ No newline at end of file