diff --git a/src/db/migration/V20200520_0934__mantis19260.sql b/src/db/migration/V20200520_0934__mantis19260.sql index aede5b71b..dd77551cb 100644 --- a/src/db/migration/V20200520_0934__mantis19260.sql +++ b/src/db/migration/V20200520_0934__mantis19260.sql @@ -7,9 +7,13 @@ begin end; declare - object_exists exception; - pragma exception_init (object_exists , -01430); + dup_val_on_index exception; + except_02291 exception; + pragma exception_init (dup_val_on_index , -00001); + pragma exception_init (except_02291 , -02291); begin - execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1'; - exception when object_exists then null; + execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1'; + exception + when dup_val_on_index then null; + when except_02291 then null; end; \ No newline at end of file