Commit 275ce44fba09dc6b158b73de26dbcee0ce1666bb
1 parent
08826997
Exists in
master
Ajuste de migracoes
Showing
2 changed files
with
13 additions
and
7 deletions
Show diff stats
migrations/comercial/scripts/20150521133247_insert_nova_funcionalidade_qtd_impressao_termica.sql
| ... | ... | @@ -41,7 +41,7 @@ INSERT INTO seguranca.funcionalidade( |
| 41 | 41 | fncd_id, modu_id, fncd_dsfuncionalidade, fncd_tmultimaalteracao, |
| 42 | 42 | fncd_dscaminhomenu, fncd_dscaminhourl, fncd_icpontoentrada, fncd_dsabreviado, |
| 43 | 43 | fncd_nnordemmenu, fncd_icnovajanela, fncd_icolap, fncg_id) |
| 44 | - VALUES (16027, 7,'Consultar Quantidade de Contas Impressao Termica', now(), | |
| 44 | + VALUES (nextval('seguranca.seq_funcionalidade'), 7,'Consultar Quantidade de Contas Impressao Termica', now(), | |
| 45 | 45 | 'Gsan/Faturamento/Conta', 'exibirFiltrarQtdeContaImpressaoTermicaAction.do', 1, 'qtCntImTe',0, 2, 2, 33); |
| 46 | 46 | |
| 47 | 47 | |
| ... | ... | @@ -49,13 +49,13 @@ INSERT INTO seguranca.operacao( |
| 49 | 49 | oper_id, fncd_id, oper_dsoperacao, oper_dsabreviado, oper_dscaminhourl, |
| 50 | 50 | oper_tmultimaalteracao, oper_idoperacaopesquisa, tbco_id, optp_id, |
| 51 | 51 | tbco_idargumento, oper_icregistratransacao) |
| 52 | - VALUES (15049, 16027, 'Consultar Quantidade de Contas Impressao Termica', 'qtCntImTe', 'consultarQtdeContaImpressaoTermicaAction.do', now(), null, null, 6, null, 2); | |
| 52 | + VALUES (nextval('seguranca.seq_operacao'), currval('seguranca.seq_funcionalidade'), 'Consultar Quantidade de Contas Impressao Termica', 'qtCntImTe', 'consultarQtdeContaImpressaoTermicaAction.do', now(), null, null, 6, null, 2); | |
| 53 | 53 | |
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | INSERT INTO seguranca.grupo_func_operacao( |
| 57 | 57 | grup_id, oper_id, fncd_id, gfop_tmultimaalteracao) |
| 58 | - VALUES (1, 15049, 16027, now()); | |
| 58 | + VALUES (1, currval('seguranca.seq_operacao'), currval('seguranca.seq_funcionalidade'), now()); | |
| 59 | 59 | |
| 60 | 60 | |
| 61 | 61 | -- //@UNDO |
| ... | ... | @@ -63,7 +63,9 @@ INSERT INTO seguranca.grupo_func_operacao( |
| 63 | 63 | |
| 64 | 64 | DROP SEQUENCE faturamento.seq_conta_impressao_termica_qtde; |
| 65 | 65 | DROP TABLE faturamento.conta_impressao_termica_qtde; |
| 66 | -DELETE FROM seguranca.grupo_func_operacao WHERE oper_id = 15049 AND fncd_id = 16027; | |
| 67 | -DELETE FROM seguranca.operacao WHERE oper_id = 15049; | |
| 68 | -DELETE FROM seguranca.funcionalidade WHERE fncd_id = 16027; | |
| 66 | +DELETE FROM seguranca.grupo_func_operacao WHERE fncd_id in ( | |
| 67 | + SELECT fncd_id FROM seguranca.funcionalidade WHERE fncd_dscaminhourl = 'exibirFiltrarQtdeContaImpressaoTermicaAction.do' | |
| 68 | +); | |
| 69 | +DELETE FROM seguranca.operacao WHERE oper_dscaminhourl = 'consultarQtdeContaImpressaoTermicaAction.do'; | |
| 70 | +DELETE FROM seguranca.funcionalidade WHERE fncd_dscaminhourl = 'exibirFiltrarQtdeContaImpressaoTermicaAction.do'; | |
| 69 | 71 | ... | ... |
migrations/comercial/scripts/20150521173722_insert_lancamento_item_bonus_social.sql
| ... | ... | @@ -8,4 +8,8 @@ VALUES (87, 'BONUS SOCIAL', 'BS', 2, now()); |
| 8 | 8 | -- //@UNDO |
| 9 | 9 | -- SQL to undo the change goes here. |
| 10 | 10 | |
| 11 | -DELETE FROM financeiro.lancamento_item WHERE lcit_id = 87; | |
| 11 | +delete from arrecadacao.arrec_contb_parametros where lcit_id = 87; | |
| 12 | +delete from arrecadacao.resumo_arrecadacao where lcit_id = 87; | |
| 13 | +delete from faturamento.fatur_contb_parametros where lcit_id = 87; | |
| 14 | +delete from financeiro.resumo_faturamento where lcit_id = 87; | |
| 15 | +DELETE FROM financeiro.lancamento_item WHERE lcit_id = 87; | |
| 12 | 16 | \ No newline at end of file | ... | ... |