From a9f12e0a2318806baa62333bc92efbf04d486b87 Mon Sep 17 00:00:00 2001 From: wilian Date: Wed, 6 Jun 2018 17:44:40 +0000 Subject: [PATCH] fixes bug#11299 dev:thiago qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@82431 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20180606_1112__mantis11299.sql | 7 +++++ .../migration/V20180606_1404__mantis11299.sql | 26 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/db/migration/V20180606_1112__mantis11299.sql create mode 100644 src/db/migration/V20180606_1404__mantis11299.sql diff --git a/src/db/migration/V20180606_1112__mantis11299.sql b/src/db/migration/V20180606_1112__mantis11299.sql new file mode 100644 index 000000000..777fcba88 --- /dev/null +++ b/src/db/migration/V20180606_1112__mantis11299.sql @@ -0,0 +1,7 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (funcion_sistema_seq.nextval,2,''ADM > CONFIGURCAO COMERCIAL > PRESTACAO CONTAS > RECALCULO DE COMISSAO > AUTORIZACAO > PERMITE CALCULO TODAS AGENCIAS'',''COM.RJCONSULTORES.ADM.CALCULODIARIOCOMISSAO.AUTORIZACAOCALCULOTODASAGENCIAS'',1,sysdate,1)'; +end; \ No newline at end of file diff --git a/src/db/migration/V20180606_1404__mantis11299.sql b/src/db/migration/V20180606_1404__mantis11299.sql new file mode 100644 index 000000000..34b9c87d8 --- /dev/null +++ b/src/db/migration/V20180606_1404__mantis11299.sql @@ -0,0 +1,26 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO_RECEITA MODIFY( +BPR NUMBER(13,2), +GAP NUMBER(13,2), +IMPGAP NUMBER(13,2), +INTERNET NUMBER(13,2), +CANCELADOS NUMBER(13,2), +CANCELGAP NUMBER(13,2), +DEVOLVIDOS NUMBER(13,2), +DEVGAP NUMBER(13,2), +EXCESSO_BAGAGEM NUMBER(13,2), +SEG_OPCIONAL NUMBER(13,2), +RECEITA_OUTROS NUMBER(13,2), +DEVOLVIDOS_ORIGEM NUMBER(13,2), +DEVOLVIDOS_ORIGEM_GAP NUMBER(13,2), +QTDE_IMPGAP NUMBER(13,2), +COMISSAO_BPR NUMBER(13,2), +COMISSAO_ENTREGA_PASSAGEM NUMBER(13,2), +COMISSAO_ENTREGA_BAGAGEM NUMBER(13,2), +COMISSAO_SEG_OPCIONAL NUMBER(13,2), +COMISSAO_OUTROS NUMBER(13,2))'; + exception when column_exists then null; +end; \ No newline at end of file