Commit 53ed2f8b846b2bd64fcc5b09f7b76efee073f8ee

Authored by Marcelo Linhares
1 parent 3880dbb2
Exists in MarceloOracle

Cortanto do tamanho dos idx para 30

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
bd/PenMetaBD.php
@@ -331,9 +331,9 @@ class PenMetaBD extends InfraMetaBD { @@ -331,9 +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 - $n = idx_'.$strNomeTabela.'_'.$strPk; 334 + $n = 'idx_'.$strNomeTabela.'_'.$strPk;
335 $n = substr($n, 0, 30); 335 $n = substr($n, 0, 30);
336 - $objInfraBanco->executarSql('CREATE INDEX $n.' ON '.$strNomeTabela.'('.$strPk.')'); 336 + $objInfraBanco->executarSql('CREATE INDEX '.$n.' ON '.$strNomeTabela.'('.$strPk.')');
337 } 337 }
338 } 338 }
339 } 339 }