Files
geniusrun/backend/internal/store
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
..
2026-07-17 18:33:06 +02:00