Commit 8c6409c877a17695aea9cc48dd85b72ec0adb457
1 parent
732aeb1c
Exists in
2.9
and in
7 other branches
Corrige problema com matrículas de usuário na unificação de pessoa
- Remove o registro da tabela 'portal.funcionario'. - Atualiza os códigos da tabela 'portal.agenda'.
Showing
1 changed file
with
22 additions
and
1 deletions
Show diff stats
ieducar/lib/App/Unificacao/Pessoa.php
... | ... | @@ -273,16 +273,37 @@ class App_Unificacao_Pessoa extends App_Unificacao_Base |
273 | 273 | 'coluna' => 'ref_ref_cod_pessoa_cad' |
274 | 274 | ], |
275 | 275 | [ |
276 | + 'tabela' => 'portal.agenda', | |
277 | + 'coluna' => 'ref_ref_cod_pessoa_own' | |
278 | + ], | |
279 | + [ | |
280 | + 'tabela' => 'portal.agenda', | |
281 | + 'coluna' => 'ref_ref_cod_pessoa_cad' | |
282 | + ], | |
283 | + [ | |
284 | + 'tabela' => 'portal.agenda', | |
285 | + 'coluna' => 'ref_ref_cod_pessoa_exc' | |
286 | + ], | |
287 | + [ | |
276 | 288 | 'tabela' => 'portal.agenda_responsavel', |
277 | 289 | 'coluna' => 'ref_ref_cod_pessoa_fj' |
278 | 290 | ], |
279 | 291 | [ |
292 | + 'tabela' => 'portal.funcionario', | |
293 | + 'coluna' => 'ref_ref_cod_pessoa_fj' | |
294 | + ], | |
295 | + [ | |
280 | 296 | 'tabela' => 'pmieducar.aluno_excluidos', |
281 | 297 | 'coluna' => 'ref_idpes' |
282 | 298 | ], |
283 | 299 | ]; |
284 | 300 | |
285 | - protected $chavesDeletarDuplicados = []; | |
301 | + protected $chavesDeletarDuplicados = [ | |
302 | + [ | |
303 | + 'tabela' => 'portal.funcionario', | |
304 | + 'coluna' => 'ref_cod_pessoa_fj' | |
305 | + ], | |
306 | + ]; | |
286 | 307 | |
287 | 308 | protected $triggersNecessarias = [ |
288 | 309 | [ | ... | ... |