veza/veza-backend-api/migrations/941_notification_prefs_defaults_v0105_down.sql
senke dd23805401 feat(v0.10.5): Notifications Complètes (F551-F555)
- Phase 1: Default prefs — push_message & push_follow only; migration 941
- Phase 2: Digest = new tracks from followed artists (ORIGIN §8.1), not unread notifications
- Phase 3: Toggle 'désactiver marketing' + button 'Tout désactiver sauf messages et follows'
- Phase 4: PushPreferencesSection first in NotificationSettings (source of truth)
- Roadmap: v0.10.5 → DONE
2026-03-10 10:09:32 +01:00

7 lines
321 B
SQL

-- Rollback migration 941: restore original push defaults
ALTER TABLE notification_preferences
ALTER COLUMN push_follow SET DEFAULT true,
ALTER COLUMN push_message SET DEFAULT true,
ALTER COLUMN push_like SET DEFAULT true,
ALTER COLUMN push_comment SET DEFAULT true,
ALTER COLUMN push_mention SET DEFAULT true;