Commit d34a33138fa0ec914058e4198372bd963db5f309
1 parent
740851dc
Exists in
MarceloOracle
Cortanto do tamanho dos idx/table/fk para 30
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
bd/PenMetaBD.php
... | ... | @@ -416,6 +416,10 @@ class PenMetaBD extends InfraMetaBD { |
416 | 416 | |
417 | 417 | public function adicionarChaveEstrangeira($strNomeFK, $strTabela, $arrCampos, $strTabelaOrigem, $arrCamposOrigem) { |
418 | 418 | $strNomeFK = substr($strNomeFK, 0, 30); |
419 | + if($strNomeFK=='fk_md_pen_componente_digital_m' && $strTabela=='md_pen_componente_digital' && &strTabelaOrigem=='md_pen_tram'){ | |
420 | + $strNomeFK=='fk_md_pen_componente_digital_2'; | |
421 | + } | |
422 | + //alter table md_pen_componente_digital add constraint fk_md_pen_componente_digital_m foreign key (numero_registro,id_tramite) references md_pen_tram (numero_registro,id_tramite) | |
419 | 423 | if(!$this->isChaveExiste($strTabela, $strNomeFK)) { |
420 | 424 | parent::adicionarChaveEstrangeira($strNomeFK, $strTabela, $arrCampos, $strTabelaOrigem, $arrCamposOrigem); |
421 | 425 | } | ... | ... |