mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
- Add MapLibre GL JS viewer with light/dark themes, terrain layer, and embedded static map page for coordinate sharing - Add map pin support with persistent map_pins.yaml config - Add map region subscriptions and downloader with progress tracking, sourcing pre-extracted PMTiles from a cold CDN - Add map export to PNG and GPS coordinate copy via context menu - Add MapViewer React component alongside reworked Map page - Add map catalog and region-building script (build_map_regions.py) - Remove OSM import/render scripts, leaflet files, Apache configs, renderd service, and osm-map-dumper Docker container - Update Caddyfile to serve PMTiles and map static assets - Update build/install/repair scripts for Protomaps dependencies - Drop map_file table, add/drop map_subscription table (alembic) - Adding button to skip primary drive mounting during onboarding.
26 lines
559 B
Python
26 lines
559 B
Python
"""Create map_subscription table.
|
|
|
|
Revision ID: b3c4d5e6f7a8
|
|
Revises: a2b3c4d5e6f7
|
|
Create Date: 2026-03-29
|
|
|
|
"""
|
|
from alembic import op
|
|
|
|
revision = 'b3c4d5e6f7a8'
|
|
down_revision = 'a2b3c4d5e6f7'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.execute('''CREATE TABLE map_subscription (
|
|
id SERIAL PRIMARY KEY,
|
|
name TEXT UNIQUE NOT NULL,
|
|
region TEXT NOT NULL,
|
|
download_id INTEGER NOT NULL REFERENCES download(id) ON DELETE CASCADE
|
|
)''')
|
|
|
|
|
|
def downgrade():
|
|
op.execute('DROP TABLE IF EXISTS map_subscription')
|