You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] : Missing Table in Canonical Schema Setup #2951
The wakatime_stats table (used to cache and display the user's daily WakaTime coding summaries) is defined in the database migration file supabase/migrations/20260526000000_add_wakatime_stats.sql but has not been backported into the canonical database script supabase/schema.sql.
Because of this, self-hosting developers who set up their database tables using schema.sql (as instructed in the Architecture guidelines) will be missing the wakatime_stats table. When they later try to link WakaTime and run a metrics sync, the sync fails with SQL errors because the table does not exist.
I expected the canonical supabase/schema.sql to represent the complete, production-ready schema containing all tables currently used by the application, including wakatime_stats.
Steps to Reproduce
Initialize a clean PostgreSQL database using only the supabase/schema.sql
script.
Verify the list of tables created (e.g. users, goals, streak_freezes, etc.). Notice that wakatime_stats is not present.
Configure WAKATIME_CLIENT_ID and WAKATIME_CLIENT_SECRET environment variables.
Try to trigger a sync via the /api/wakatime/sync endpoint.
Check server logs or API response, showing a PostgreSQL error: relation "public.wakatime_stats" does not exist.
Activity
yachikadev commentedon Jul 1, 2026
hii i would like to work on this contributing under gssoc'26
github-actions commentedon Jul 1, 2026
Assigned to @yachikadev! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!
fix: add missing wakatime_stats table to canonical schema.sql (#2951) (…
github-actions commentedon Jul 12, 2026
✅ Closed as completed!
If DevTrack has been useful, a ⭐ star on the repo helps the project grow and reach more developers.