Files
MyClub/database/migrations/20250907000001_add_newsletter_preferences.up.sql
T
Tomáš Dvořák 12cba639b9 upload
2025-10-16 13:32:05 +02:00

7 lines
253 B
SQL

-- Add preferences JSONB column to newsletter_subscriptions
ALTER TABLE newsletter_subscriptions
ADD COLUMN IF NOT EXISTS preferences JSONB DEFAULT '{}'::jsonb;
-- Update trigger exists from previous migration to keep updated_at behavior (no-op here)