diff --git a/backend/prisma/migrations/20260511_enable_realtime_notifications/migration.sql b/backend/prisma/migrations/20260511_enable_realtime_notifications/migration.sql new file mode 100644 index 0000000..e2bb049 --- /dev/null +++ b/backend/prisma/migrations/20260511_enable_realtime_notifications/migration.sql @@ -0,0 +1,5 @@ +-- Enable Supabase Realtime for notifications table +-- Fixes CHANNEL_ERROR in notifRealtime subscription: +-- rebreak.notifications was not part of supabase_realtime publication, +-- causing postgres_changes subscriptions to fail with CHANNEL_ERROR. +ALTER PUBLICATION supabase_realtime ADD TABLE rebreak.notifications;