Fix update agents plus view migration
This commit is contained in:
parent
3691491c84
commit
f92c63fd54
|
@ -49,13 +49,13 @@ class UpdateAgentPlusView extends Migration
|
|||
`t`.`name` AS `town_name`,
|
||||
`ag`.`town_id` AS `town_id`
|
||||
FROM
|
||||
((((((`iLink_preprod`.`agents` `ag`
|
||||
JOIN `iLink_preprod`.`networks_agents` `na` ON ((`na`.`agent_id` = `ag`.`id`)))
|
||||
JOIN `iLink_preprod`.`networks` `ne` ON ((`ne`.`id` = `na`.`network_id`)))
|
||||
JOIN `iLink_preprod`.`countries` `cti` ON ((`cti`.`id` = `ne`.`country_id`)))
|
||||
JOIN `iLink_preprod`.`codeGenerer` `cg` ON ((`cg`.`id` = `na`.`codeGenerer_id`)))
|
||||
JOIN `iLink_preprod`.`towns` `t` ON ((`ag`.`town_id` = `t`.`id`)))
|
||||
LEFT JOIN `iLink_preprod`.`nh_provider_classes` `pc` ON ((`pc`.`id` = `na`.`nh_provider_class_id`)))
|
||||
((((((`agents` `ag`
|
||||
JOIN `networks_agents` `na` ON ((`na`.`agent_id` = `ag`.`id`)))
|
||||
JOIN `networks` `ne` ON ((`ne`.`id` = `na`.`network_id`)))
|
||||
JOIN `countries` `cti` ON ((`cti`.`id` = `ne`.`country_id`)))
|
||||
JOIN `codeGenerer` `cg` ON ((`cg`.`id` = `na`.`codeGenerer_id`)))
|
||||
JOIN `towns` `t` ON ((`ag`.`town_id` = `t`.`id`)))
|
||||
LEFT JOIN `nh_provider_classes` `pc` ON ((`pc`.`id` = `na`.`nh_provider_class_id`)))
|
||||
");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue