diff --git a/src/db/migration/V20170111_1926__mantis8340.sql b/src/db/migration/V20170111_1926__mantis8340.sql new file mode 100644 index 000000000..2aadff480 --- /dev/null +++ b/src/db/migration/V20170111_1926__mantis8340.sql @@ -0,0 +1,20 @@ +select * from boleto where NUMFOLIOSISTEMA = 170687; + +select * from SEGPOLV where BOLETO_ID in( 10000003617007, +10000003617008, +10000003617009); + + +declare + + dup_val_on_index exception; + + pragma exception_init (dup_val_on_index , -00001); + +begin + + execute immediate 'Insert into MOTIVO_CANCELACION (MOTIVOCANCELACION_ID,DESCMOTIVO,TIPOMOTIVO,EQUIVALENCIAELEKTRA_ID,EQUIVALENCIA_ID,ACTIVO,FECMODIF,USUARIO_ID,TXTRELATORIO) values (95,''POLTRONA_EXCLUSIVA'',''B'',null,null,''1'',sysdate,''-3'',''POLTRONA_EXCLUSIVA'')'; + + exception when dup_val_on_index then null; + +end; \ No newline at end of file