mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-07-01 23:41:00 +02:00
1c04baec7d
The column was declared String(8) but stores 16-char hex signatures (and can hold the up-to-32-char packet_hash fallback from the LetsMesh normalizer). SQLite never enforced the length, so the undersized definition went unnoticed until db migrate-to-postgres rejected the data with StringDataRightTruncation (varchar(8)). Widen the model column and add an Alembic migration (batch_alter_table, so it applies on both SQLite and Postgres). Verified end-to-end migrating a 1.2GB live SQLite DB into Postgres (all 12 tables reconcile). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>