Correção script

bug#13440
dev:trevezani
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@91579 d1611594-4594-4d17-8e1d-87c2c4800839
master
alberto 2019-04-04 14:38:45 +00:00
parent 20a0dcf7e8
commit 4a994a7246
1 changed files with 64 additions and 1 deletions

View File

@ -3,14 +3,77 @@ declare
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD PUNTOVENTA_ID NUMBER(7)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD PUNTOVENTA_CANCELAMENTO_ID NUMBER(7)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD TIPOPTOVTA_ID NUMBER(2)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD DESC_LOCAL_VENDA VARCHAR2(180)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD DESC_LOCAL_CANCELAMENTO VARCHAR2(180)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD UF_VENDA VARCHAR2(2)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD UF_CANCELAMENTO VARCHAR2(2)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD HORACANCELAMENTO VARCHAR2(5)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD NUMKMVIAJE NUMBER(7,2)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TAXPOLV ADD DESCRUTA VARCHAR2(60)';
exception when column_exists then null;
end;