fixes bug#0014278
dev: thiago qua: wallysson Implementação efetuada. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@94496 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
020c9751f2
commit
487f404f08
|
@ -0,0 +1,29 @@
|
|||
declare
|
||||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE LOG_HISTORICO_CONTINGENCIA ADD IND_AMBIENTE NUMBER(1,0)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
begin
|
||||
execute immediate 'COMMENT ON COLUMN LOG_HISTORICO_CONTINGENCIA.IND_AMBIENTE IS ''1-Produção, 2-Homologação''';
|
||||
end;
|
||||
/
|
||||
declare
|
||||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL ADD DESTINATARIO VARCHAR2(50)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
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,''TEMPO_ENVIO_EMAIL_CONTINGENCIA'',''Tempo de envio de email quando em contingência'',1,30,1,1,null,1)';
|
||||
exception when dup_val_on_index then null;
|
||||
end;
|
||||
/
|
|
@ -0,0 +1,18 @@
|
|||
DO $$
|
||||
BEGIN
|
||||
ALTER TABLE LOG_HISTORICO_CONTINGENCIA ADD COLUMN IND_AMBIENTE NUMERIC(1,0);
|
||||
END
|
||||
$$;
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
ALTER TABLE EMPRESA_EMAIL ADD COLUMN DESTINATARIO VARCHAR(50);
|
||||
END
|
||||
$$;
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
INSERT INTO CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) VALUES
|
||||
(nextval('CONSTANTE_SEQ'),'TEMPO_ENVIO_EMAIL_CONTINGENCIA','Tempo de envio de email quando em contingência',1,30,1,1,null,1);
|
||||
END
|
||||
$$;
|
Loading…
Reference in New Issue