Files
beacon-server/db/migrations/044_meshmapper_zones.sql
T
MrAlders0n 0e242574fb feat(meshmapper): import region boundaries from the Zones API
Imported boundaries override borderFile on the border map and for foreign marking, falling back to the manual border when MeshMapper has none.
2026-09-30 12:38:36 -04:00

16 lines
528 B
SQL

-- Copyright 2026 Beacon Contributors
-- SPDX-License-Identifier: AGPL-3.0-or-later
-- Imported MeshMapper region boundaries. Kept apart from iata_codes.border so
-- startup seeding of manual borderFile borders never undoes the override.
CREATE TABLE IF NOT EXISTS meshmapper_zone_boundaries (
iata TEXT PRIMARY KEY,
url TEXT NOT NULL,
feature JSONB,
etag TEXT,
checked_at TIMESTAMPTZ,
attempted_at TIMESTAMPTZ NOT NULL,
next_attempt TIMESTAMPTZ NOT NULL,
last_error TEXT NOT NULL DEFAULT ''
);