Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove unused notification history backfill

Neeraj Gupta75de9e6e4636
diff --git a/server/migrations/117_add_notification_history_group.up.sql b/server/migrations/117_add_notification_history_group.up.sql
index 648b442e36..0e325e5bdd 100644
--- a/server/migrations/117_add_notification_history_group.up.sql
+++ b/server/migrations/117_add_notification_history_group.up.sql
@@ -1,24 +1,6 @@
ALTER TABLE notification_history
ADD COLUMN IF NOT EXISTS notification_group TEXT;
-UPDATE notification_history
-SET notification_group = 'storage_warning_active_overage'
-WHERE template_id IN (
- 'family_storage_warning_active_overage',
- 'family_storage_warning_active_overage_30d',
- 'family_storage_warning_active_overage_60d',
- 'family_storage_warning_active_overage_89d'
-);
-
-UPDATE notification_history
-SET notification_group = 'storage_warning_expired'
-WHERE template_id IN (
- 'family_storage_warning_expired_30d',
- 'family_storage_warning_expired_60d',
- 'family_storage_warning_expired_90d',
- 'family_storage_warning_expired_119d'
-);
-
CREATE INDEX IF NOT EXISTS notification_history_user_template_sent_time_idx
ON notification_history(user_id, template_id, sent_time DESC);