0023034: Espec - Automatização de horário extra
bug#23034 dev:valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@109210 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ef40572387
commit
2e81848575
|
@ -0,0 +1,109 @@
|
||||||
|
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,''CRON_ROTINA_SERVICO_EXTRA_AUTOMATICO'',''CRON_ROTINA_SERVICO_EXTRA_AUTOMATICO'',
|
||||||
|
1,null,null,''1'',sysdate,''1'')';
|
||||||
|
exception when dup_val_on_index then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (ISAUTOMACAOHORARIOEXTRA NUMBER(1,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (TAXA_OCUPACAO NUMBER(7,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (HORAS_AUTOMACAO_HE_DE NUMBER(7,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD ( MINUTOS_AUTOMACAO_HE_DE NUMBER(7,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (HORAS_AUTOMACAO_HE_ATE NUMBER(7,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (MINUTOS_AUTOMACAO_HE_ATE NUMBER(7,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (MINUTOS_AUTOMACAO_HE_ATE NUMBER(7,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (BLOQUEIAINTERNET_HE NUMBER(1,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (NUMCORRIDA_SERVICOEXTRA NUMBER(7,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (ROLOPERATIVO_SERVICOEXTRA_ID NUMBER(7,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (PLATAFORMASERVICOEXTRA VARCHAR2(40 BYTE))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
end;
|
|
@ -0,0 +1,18 @@
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,
|
||||||
|
VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID)
|
||||||
|
values (CONSTANTE_SEQ.NEXTVAL,'CRON_ROTINA_SERVICO_EXTRA_AUTOMATICO','CRON_ROTINA_SERVICO_EXTRA_AUTOMATICO',
|
||||||
|
1,null,null,'1',sysdate,'1');
|
||||||
|
EXCEPTION WHEN duplicate_column THEN NULL;
|
||||||
|
END
|
||||||
|
$$;
|
||||||
|
/
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
ALTER TABLE ESQUEMA_CORRIDA ADD (ISAUTOMACAOHORARIOEXTRA NUMBER(1,0), TAXA_OCUPACAO NUMBER(7,0), HORAS_AUTOMACAO_HE_DE NUMBER(7,0), MINUTOS_AUTOMACAO_HE_DE NUMBER(7,0),
|
||||||
|
HORAS_AUTOMACAO_HE_ATE NUMBER(7,0), MINUTOS_AUTOMACAO_HE_ATE NUMBER(7,0), BLOQUEIAINTERNET_HE NUMBER(1,0), NUMCORRIDA_SERVICOEXTRA NUMBER(7,0),
|
||||||
|
ROLOPERATIVO_SERVICOEXTRA_ID NUMBER(7,0), PLATAFORMASERVICOEXTRA VARCHAR2(40 BYTE));
|
||||||
|
EXCEPTION WHEN duplicate_column THEN NULL;
|
||||||
|
END
|
||||||
|
$$;
|
Loading…
Reference in New Issue