Christophe Vila d8b722820d store: activities UNIQUE constraint rebuild for per-user design
Migration 0026 rebuilds the activities table to enforce UNIQUE(user_id,
garmin_activity_id) as the composite primary constraint, removing the old
global UNIQUE(garmin_activity_id) constraint from migration 0001. This
allows the same Garmin activity ID to appear for different users without
conflicts, which is essential for the per-user profile design and enables
the TestUpsertActivity_SameGarminActivityIDAllowedAcrossDifferentUsers
test to pass.
2026-07-25 14:12:54 +02:00
Description
No description provided
1.5 MiB
Languages
Go 72.8%
TypeScript 20.3%
Python 4.7%
CSS 2.1%