wrolpi/alembic/versions/a2b3c4d5e6f7_drop_map_file_table.py
Roland b8a532c8d9
Key changes:
- 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.
2026-04-04 13:48:19 -06:00

29 lines
591 B
Python

"""Drop map_file table.
PMTiles files are now scanned directly from disk; the map_file table is no longer needed.
Revision ID: a2b3c4d5e6f7
Revises: e7f8a9b0c1d2
Create Date: 2026-03-29
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = 'a2b3c4d5e6f7'
down_revision = 'e7f8a9b0c1d2'
branch_labels = None
depends_on = None
def upgrade():
op.drop_table('map_file')
def downgrade():
op.execute('''CREATE TABLE map_file (
id SERIAL PRIMARY KEY,
path TEXT NOT NULL,
imported BOOLEAN DEFAULT FALSE,
size BIGINT
)''')