0019804: GAP01_Metamorfose - Relatório de Solicitação de Cancelamento

0019805: GAP02.1_Metamorfose - Forma de Pagamento
0019806: GAP03_Metamorfose - Formulário Solicitação de Cancelamento
bug#19804
bug#19805
bug#19806
dev:valdevir
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@102807 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdir 2020-08-06 18:57:26 +00:00
parent 2081defa12
commit 2828c784dd
4 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,16 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FORMA_PAGO ADD INDESTORNO NUMBER(1,0)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'update forma_pago set indestorno = 1 where formapago_id in (2, 3)';
exception when column_exists then null;
end;
/

View File

@ -0,0 +1,16 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE DADOS_ESTORNO_CARTAO ADD FORMAPAGO_ID NUMBER(7,0)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE DADOS_ESTORNO_CARTAO ADD PONTO_VENDA_BOLETO_ID NUMBER(7,0)';
exception when column_exists then null;
end;

View File

@ -0,0 +1,13 @@
DO $$
BEGIN
ALTER TABLE FORMA_PAGO ADD INDESTORNO NUMBER(1,0);
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;
/
DO $$
BEGIN
update forma_pago set indestorno = 1 where formapago_id in (2, 3);
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;

View File

@ -0,0 +1,14 @@
DO $$
BEGIN
ALTER TABLE DADOS_ESTORNO_CARTAO ADD FORMAPAGO_ID NUMBER(7,0);
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;
/
DO $$
BEGIN
ALTER TABLE DADOS_ESTORNO_CARTAO ADD PONTO_VENDA_BOLETO_ID NUMBER(7,0);
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;