GE-871 upsert network_type column in update_osm_route_member (#1384)

Fixes #1374 

This PR fixes `update_osm_route_member()` function. Before this the column `network_type` became empty after daily-update.
This PR adds `network_type` into upsert together with `rank` and `concurrency_index` columns.
This bug had occurred once already and had been fixed in https://github.com/openmaptiles/openmaptiles/pull/1239 but then some columns were added and these new columns were not added into the upsert.
pull/1383/head^2
Adam Laža 2022-05-05 13:14:35 +02:00 zatwierdzone przez GitHub
rodzic b8e87fbf07
commit ef9a68b19a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -75,7 +75,8 @@ BEGIN
WHERE rm.member IN
(SELECT DISTINCT osm_id FROM transportation_name.network_changes)
ON CONFLICT (id, osm_id) DO UPDATE SET concurrency_index = EXCLUDED.concurrency_index,
rank = EXCLUDED.rank;
rank = EXCLUDED.rank,
network_type = EXCLUDED.network_type;
END;
$$ LANGUAGE plpgsql;