diff --git a/tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_createdAt.mjs b/tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_recipient_id.mjs similarity index 84% rename from tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_createdAt.mjs rename to tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_recipient_id.mjs index 6f7ede2d2e..c863564f19 100644 --- a/tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_createdAt.mjs +++ b/tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_recipient_id.mjs @@ -18,16 +18,9 @@ const oldIndexes = [ const newIndexes = [ { key: { - createdAt: 1, + recipient_id: 1, }, - name: 'createdAt_1', - expireAfterSeconds: 60 * 60 * 24, // expire after 24 hours - }, - { - key: { - project_id: 1, - }, - name: 'project_id_1', + name: 'recipientId_1', expireAfterSeconds: 60 * 60 * 24, // expire after 24 hours }, ]