aprs.me/priv
Graham McIntire 2629589b7f
Fix packet counter accuracy after TRUNCATE operations
The packet counter uses a PostgreSQL sequence that doesn't get reset
when the packets table is truncated, causing inaccurate counts.

This migration:
- Creates an event trigger that automatically resets the packet counter
  sequence when the packets table is truncated
- Adds a manual reset function reset_packet_counter() that can be called
  if needed
- Improves the get_packet_count() function to properly handle when the
  sequence is at 0

After applying this migration, the counter will automatically reset to 0
whenever TRUNCATE is used on the packets table.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-19 15:25:56 -05:00
..
gettext add more translations 2025-07-18 11:18:04 -05:00
gleam Fix Docker deployment with Gleam integration 2025-07-18 14:06:36 -05:00
repo Fix packet counter accuracy after TRUNCATE operations 2025-07-19 15:25:56 -05:00
static deploy fix for tailwind 2025-07-05 09:25:34 -05:00