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