bug #0009614 - alterações na empresa para ativação da fidelidade

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@74047 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno.neves 2017-09-20 14:41:22 +00:00
parent 43d8e26962
commit 8e9723110e
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE EMPRESA ADD (INDUTILIZAFIDELIDADE NUMBER(1,0) DEFAULT 0)';
exception when column_exists then null;
end;

View File

@ -0,0 +1,8 @@
declare
dup_val_on_index exception;
pragma exception_init (dup_val_on_index , -00001);
begin
execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''URL_WS_FIDELIDADE'',''URL de chamada do projeto Fidelidade'',''1'',''http://ipws:porta'',''1'',''1'',sysdate,''1'')';
exception when dup_val_on_index then null;
end;