From 8f4c2e6ae73a0d147bad0ea0fe6a3a1ea61b7cb7 Mon Sep 17 00:00:00 2001 From: Marcelo Linhares Date: Tue, 3 Jul 2018 10:23:02 -0300 Subject: [PATCH] Cortanto do tamanho dos idx para 30 --- bd/PenMetaBD.php | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/bd/PenMetaBD.php b/bd/PenMetaBD.php index 22d8ea1..e9ad064 100644 --- a/bd/PenMetaBD.php +++ b/bd/PenMetaBD.php @@ -333,6 +333,10 @@ class PenMetaBD extends InfraMetaBD { foreach($arrSchema['pk'] as $strPk) { $n = 'idx_'.$strNomeTabela.'_'.$strPk; $n = substr($n, 0, 30); + if($n=='idx_md_pen_recibo_tramite_envi' && $strNomeTabela=='md_pen_recibo_tramite_enviado'){ + $n="idx_md_pen_recibo_tramite_env2" + } + //idx_md_pen_recibo_tramite_envi ON md_pen_recibo_tramite_enviado(id_tramite) $objInfraBanco->executarSql('CREATE INDEX '.$n.' ON '.$strNomeTabela.'('.$strPk.')'); } } -- libgit2 0.21.2