Add Komoot activity import with guided browser-based batch flow #25

Open
McPringle wants to merge 23 commits from McPringle/komoot-import into main
Showing only changes of commit 0cea88d033 - Show all commits

View file

@ -0,0 +1,15 @@
-- Add optional internal reference to the originating Komoot activity.
javahippie commented 2026-04-29 09:55:18 +02:00 (Migrated from github.com)

See above, should be a seperate table

See above, should be a seperate table
--
-- This field is only used for import matching and deduplication. It is not
-- intended for public display or API exposure.
ALTER TABLE activities
ADD COLUMN komoot_activity_id BIGINT;
-- A Komoot activity may only be imported once per local user.
CREATE UNIQUE INDEX idx_activities_user_komoot_activity_id
ON activities(user_id, komoot_activity_id)
WHERE komoot_activity_id IS NOT NULL;
COMMENT ON COLUMN activities.komoot_activity_id IS
'Optional internal Komoot activity ID used for import matching and deduplication';