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