From 44f7333d9deef81d3468e20b378c63692a9406ec Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 21 Aug 2026 10:30:27 +0200 Subject: Use OSM as the single source of mountain passes Replace the centcols CSV download/enrichment pipeline with OSM PBF extraction as the primary (only) source: merge osmpass into mountain_pass, drop the centcols table and model fields, filter to named passes with elevation, and remove the centcols CLI flags. --- db/migrations/20260821000000_osm_only_mountain_passes.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 db/migrations/20260821000000_osm_only_mountain_passes.sql (limited to 'db/migrations') diff --git a/db/migrations/20260821000000_osm_only_mountain_passes.sql b/db/migrations/20260821000000_osm_only_mountain_passes.sql new file mode 100644 index 0000000..ebeed55 --- /dev/null +++ b/db/migrations/20260821000000_osm_only_mountain_passes.sql @@ -0,0 +1,14 @@ +-- migrate:up +drop table mountain_passes; +alter table osm_passes rename to mountain_passes; + +-- migrate:down +alter table mountain_passes rename to osm_passes; +create table mountain_passes ( + id integer primary key, + external_id text unique not null, + name text not null, + country_code text not null, + department_code text not null, + elevation integer not null +); -- cgit v1.3