AdmMono/src/db/migration/V20170720_1800__mantis9425.sql

39 lines
1.1 KiB
SQL

declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE DADOS_ESTORNO_CARTAO add TIPOCARTAO VARCHAR2(66)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE DADOS_ESTORNO_CARTAO add CORRIDA_ID NUMBER(22)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE DADOS_ESTORNO_CARTAO add FECCORRIDA DATE';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE DADOS_ESTORNO_CARTAO add PUNTOVENTA_ID NUMBER(22)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE DADOS_ESTORNO_CARTAO add MARCA_ID NUMBER(22)';
exception when object_exists then null;
end;