Commit 3880dbb23958e7a86c02982c5c986a2120ba6d81
1 parent
65bdd014
Exists in
MarceloOracle
Cortanto do tamanho dos idx para 30
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
bd/PenMetaBD.php
@@ -331,8 +331,9 @@ class PenMetaBD extends InfraMetaBD { | @@ -331,8 +331,9 @@ class PenMetaBD extends InfraMetaBD { | ||
331 | if(count($arrSchema['pk']) > 1) { | 331 | if(count($arrSchema['pk']) > 1) { |
332 | 332 | ||
333 | foreach($arrSchema['pk'] as $strPk) { | 333 | foreach($arrSchema['pk'] as $strPk) { |
334 | - | ||
335 | - $objInfraBanco->executarSql('CREATE INDEX idx_'.$strNomeTabela.'_'.$strPk.' ON '.$strNomeTabela.'('.$strPk.')'); | 334 | + $n = idx_'.$strNomeTabela.'_'.$strPk; |
335 | + $n = substr($n, 0, 30); | ||
336 | + $objInfraBanco->executarSql('CREATE INDEX $n.' ON '.$strNomeTabela.'('.$strPk.')'); | ||
336 | } | 337 | } |
337 | } | 338 | } |
338 | } | 339 | } |