Merge pull request 'fixes bug#AL-5073' (!211) from AL-5073 into master
Reviewed-on: utilidades/Flyway#211 Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br>master
commit
29b3f6fee8
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>Flyway</artifactId>
|
||||
<version>1.98.2</version>
|
||||
<version>1.98.3</version>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
-- INSERT / UPDATE
|
||||
declare
|
||||
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 'DELETE FROM EMPRESA_SICFE_CONFIG WHERE ( CHAVE, EMPRESA_ID )
|
||||
IN (SELECT CHAVE, EMPRESA_ID FROM EMPRESA_SICFE_CONFIG GROUP BY CHAVE, EMPRESA_ID HAVING COUNT(1) > 1)
|
||||
AND VALOR IS NULL';
|
||||
exception
|
||||
when dup_val_on_index then null;
|
||||
when except_02291 then null;
|
||||
end;
|
Loading…
Reference in New Issue