Files
Sauci/apps/supabase/migrations/20260125200000_add_onboarding_version.sql
T
jjbrunton 1daf386765 Add question types, nudge feature, and share modal
- Add new question card components (photo, audio, text, who-likely)
- Add share preview modal for matches
- Add nudge notification system with rate limiting
- Add session-based notification improvements
- Add match confetti celebration animation
- Update onboarding flow with paywall tracking
- Remove deprecated swipe card and tutorial components
- Update GlassCard/GlassInput to use solid backgrounds
- Fix routing issues after packs screen removal
2026-01-25 19:17:39 +00:00

15 lines
688 B
SQL

-- Add onboarding_version column to track which version of onboarding users completed
-- This allows forcing users through re-onboarding when new data is required
ALTER TABLE profiles
ADD COLUMN onboarding_version INTEGER DEFAULT 0;
-- Set existing users who completed onboarding to version 1
-- New users will default to 0 and need to complete the current version
UPDATE profiles
SET onboarding_version = 1
WHERE onboarding_completed = true;
-- Add comment for documentation
COMMENT ON COLUMN profiles.onboarding_version IS 'Version of onboarding flow completed. 0 = never completed, 1+ = completed that version. Used to force re-onboarding when new data is required.';