leonardo 2017-02-19 14:49:01 +00:00
parent e663cff149
commit e3055ea69a
4 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,8 @@
declare
dup_val_on_index exception;
pragma exception_init (dup_val_on_index , -00001);
begin
execute immediate 'ALTER TABLE AG_CONTAS_PAGAR ADD (ISSBASE NUMBER(12,2))';
execute immediate 'ALTER TABLE AG_CONTAS_PAGAR ADD (ISSVALOR NUMBER(12,2))';
exception when dup_val_on_index then null;
end;

View File

@ -0,0 +1,10 @@
declare
dup_val_on_index exception;
pragma exception_init (dup_val_on_index , -00001);
begin
execute immediate 'ALTER TABLE AG_CONTAS_PAGAR ADD (COMPETENCIA VARCHAR2(10))';
exception when dup_val_on_index then null;
end;

View File

@ -0,0 +1,7 @@
declare
dup_val_on_index exception;
pragma exception_init (dup_val_on_index , -00001);
begin
execute immediate 'ALTER TABLE AG_CONTAS_PAGAR MODIFY (FORNECEDOR VARCHAR2(30))';
exception when dup_val_on_index then null;
end;

View File

@ -0,0 +1,7 @@
declare
dup_val_on_index exception;
pragma exception_init (dup_val_on_index , -00001);
begin
execute immediate 'ALTER TABLE AG_CONTAS_PAGAR ADD (COMISSAO_ID NUMBER(7))';
exception when dup_val_on_index then null;
end;