diff --git a/src/db/migration/V20200103_1045__mantis17121.sql b/src/db/migration/V20200103_1045__mantis17121.sql index c1b3c1b47..4a1e26544 100644 --- a/src/db/migration/V20200103_1045__mantis17121.sql +++ b/src/db/migration/V20200103_1045__mantis17121.sql @@ -85,45 +85,4 @@ ADD CONSTRAINT FK_BOLETO_COTACAO when except_02275 then null; when except_02270 then null; when except_02261 then null; -end; - -/ -declare - object_exists exception; - except_01451 exception; - except_01442 exception; - - pragma exception_init (object_exists , -01430); - pragma exception_init (except_01451 , -01451); - pragma exception_init (except_01442 , -01442); -begin - execute immediate 'ALTER TABLE CAJA ADD COTACAO_ID NUMBER(7,0)'; - exception - when object_exists then null; - when except_01451 then null; - when except_01442 then null; -end; - -/ - -declare - object_exists exception; - except_02275 exception; - except_02270 exception; - except_02261 exception; - - pragma exception_init (object_exists , -01430); - pragma exception_init (except_02275 , -02275); - pragma exception_init (except_02270 , -02270); - pragma exception_init (except_02261 , -02261); -begin - execute immediate 'ALTER TABLE CAJA -ADD CONSTRAINT FK_BOLETO_COTACAO - FOREIGN KEY (COTACAO_ID) - REFERENCES COTACAO (COTACAO_ID)'; - exception - when object_exists then null; - when except_02275 then null; - when except_02270 then null; - when except_02261 then null; end; \ No newline at end of file