14292 - Criar constante estação embarcada no Totalbus.

bug#14292
dev:valdevir
qua:leo

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@92985 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2019-05-08 14:08:51 +00:00
parent b0c8fdc5c9
commit 8cff307d6f
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,10 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,
VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID)
values (CONSTANTE_SEQ.NEXTVAL,''ESTACAO_EMBARCADA'',''ESTACAO_EMBARCADA'',
1,'''',null,''1'',sysdate,''1'')';
exception when object_exists then null;
end;

View File

@ -0,0 +1,8 @@
DO $$
BEGIN
Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,
VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID)
values (CONSTANTE_SEQ.NEXTVAL,'ESTACAO_EMBARCADA','ESTACAO_EMBARCADA',
1,'',null,'1',sysdate,'1');
END
$$;