bug#al-2105

Aguia Branca - GLPI 60105 - [PROJETO] - ADM - ERRO CADASTRO DE NOVAS
ESTACOES COM INTEGRACAO SITEF
dev:
qua:
master
valdir.cordeiro 2023-01-31 10:41:12 -03:00
parent e78684e645
commit 4ccf28dfac
3 changed files with 86 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId>
<version>1.0.18</version>
<version>1.0.19</version>
<distributionManagement>
<repository>

View File

@ -0,0 +1,63 @@
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 'UPDATE ESTACION_SITEF SET TIPO_INTEGRACAO = ''SITEF'' WHERE TIPO_INTEGRACAO = ''Sitef''';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 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 'UPDATE ESTACION_SITEF SET TIPO_INTEGRACAO = ''PAYGO'' WHERE TIPO_INTEGRACAO = ''Paygo''';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 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 'UPDATE ESTACION_SITEF SET TIPO_INTEGRACAO = ''GRANITO'' WHERE TIPO_INTEGRACAO = ''Granito''';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 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 'UPDATE ESTACION_SITEF SET TIPO_INTEGRACAO = ''ADYEN'' WHERE TIPO_INTEGRACAO = ''Adyen''';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 then null;
end;

View File

@ -0,0 +1,22 @@
DO $$
BEGIN
UPDATE ESTACION_SITEF SET TIPO_INTEGRACAO = 'SITEF' WHERE TIPO_INTEGRACAO = 'Sitef';
END
$$;
/
DO $$
BEGIN
UPDATE ESTACION_SITEF SET TIPO_INTEGRACAO = 'PAYGO' WHERE TIPO_INTEGRACAO = 'Paygo';
END
$$;
/DO $$
BEGIN
UPDATE ESTACION_SITEF SET TIPO_INTEGRACAO = 'GRANITO' WHERE TIPO_INTEGRACAO = 'Granito';
END
$$;
/DO $$
BEGIN
UPDATE ESTACION_SITEF SET TIPO_INTEGRACAO = 'ADYEN' WHERE TIPO_INTEGRACAO = 'Adyen';
END
$$;