kopia lustrzana https://github.com/openmaptiles/openmaptiles
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
rodzic
b8e87fbf07
commit
ef9a68b19a
|
@ -75,7 +75,8 @@ BEGIN
|
||||||
WHERE rm.member IN
|
WHERE rm.member IN
|
||||||
(SELECT DISTINCT osm_id FROM transportation_name.network_changes)
|
(SELECT DISTINCT osm_id FROM transportation_name.network_changes)
|
||||||
ON CONFLICT (id, osm_id) DO UPDATE SET concurrency_index = EXCLUDED.concurrency_index,
|
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;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue