Files
overleaf-cep/tools/migrations/20260302141605_add_group_id_index_domainVerifications.mjs
Jessica Lawshe c1a7a898e3 Merge pull request #31942 from overleaf/jel-get-domainVerifications
[web] Start rendering domains for group with domain capture

GitOrigin-RevId: b7b007350c5757a78923d9efb259389de23b93c9
2026-03-06 09:17:47 +00:00

32 lines
525 B
JavaScript

/* eslint-disable no-unused-vars */
import Helpers from './lib/helpers.mjs'
const tags = ['saas']
const indexes = [
{
key: { groupId: 1 },
name: 'groupId_1',
},
]
const migrate = async client => {
const { db } = client
await Helpers.addIndexesToCollection(db.domainVerifications, indexes)
}
const rollback = async client => {
const { db } = client
await Helpers.dropIndexesFromCollection(db.domainVerifications, [
{ name: 'groupId_1' },
])
}
export default {
tags,
migrate,
rollback,
}