Commit 6ceb4745073f990613171a8582d0b83a1e49ad02
1 parent
fa7e1015
Exists in
MarceloOracle
Cortanto do tamanho dos idx para 30
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
bd/PenMetaBD.php
... | ... | @@ -333,9 +333,10 @@ class PenMetaBD extends InfraMetaBD { |
333 | 333 | foreach($arrSchema['pk'] as $strPk) { |
334 | 334 | $n = 'idx_'.$strNomeTabela.'_'.$strPk; |
335 | 335 | $n = substr($n, 0, 30); |
336 | - if($n=='idx_md_pen_recibo_tramite_envi' && $strNomeTabela=='md_pen_recibo_tramite_enviado'){ | |
336 | + if($n=='idx_md_pen_recibo_tramite_envi' && $strNomeTabela=='md_pen_recibo_tramite_enviado' && $strPk=='numero_registro'){ | |
337 | 337 | $n="idx_md_pen_recibo_tramite_env2"; |
338 | 338 | } |
339 | + //idx_md_pen_recibo_tramite_env2 ON md_pen_recibo_tramite_enviado(numero_registro) | |
339 | 340 | //idx_md_pen_recibo_tramite_envi ON md_pen_recibo_tramite_enviado(id_tramite) |
340 | 341 | $objInfraBanco->executarSql('CREATE INDEX '.$n.' ON '.$strNomeTabela.'('.$strPk.')'); |
341 | 342 | } | ... | ... |