aprs.me/priv/repo/migrations/20250801231447_add_enhanced_parser_fields.exs
Graham McIntire a9ad057efc
feat: Update code to handle improved APRS parser features
- Added 20 new database fields for enhanced parser compatibility:
  - Standard parser fields: srccallsign, dstcallsign, body, origpacket, header, alive, posambiguity, symboltable, symbolcode, messaging
  - Radio range field: radiorange
  - Additional weather fields: rain_midnight, has_weather
- Enhanced weather data extraction with dedicated wx field support
- Updated PHG parsing to handle both string format ("1060") and legacy map structure
- Added extraction functions for standard parser compatibility fields
- Created comprehensive test suite for enhanced parser functionality
- Updated APRS parser to latest version with improved field extraction

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 18:16:44 -05:00

22 lines
716 B
Elixir

defmodule Aprsme.Repo.Migrations.AddEnhancedParserFields do
use Ecto.Migration
def change do
alter table(:packets) do
# Radio range field
add_if_not_exists :radiorange, :string
# Standard parser compatibility fields
add_if_not_exists :srccallsign, :string
add_if_not_exists :dstcallsign, :string
add_if_not_exists :body, :string
add_if_not_exists :origpacket, :string
add_if_not_exists :header, :string
add_if_not_exists :alive, :integer, default: 1
add_if_not_exists :posambiguity, :integer
add_if_not_exists :symboltable, :string
add_if_not_exists :symbolcode, :string
add_if_not_exists :messaging, :integer
end
end
end