overleaf/services/web/migrations/20231110192205_drop_docops_collection.mjs
Liangjun Song 492fe24a75 Merge pull request #20480 from overleaf/ls-convert-migration-scripts-to-esm
Convert migration scripts to ESM

GitOrigin-RevId: 46f04a1837ebb8244b1156af2d58162d024b6b2d
2024-10-14 10:56:57 +00:00

18 lines
330 B
JavaScript

import Helper from './lib/helpers.mjs'
const { dropCollection } = Helper
const tags = ['server-ce', 'server-pro', 'saas']
const migrate = async () => {
await dropCollection('docOps')
}
const rollback = async client => {
// there's no rollback: we can't recover the data
}
export default {
tags,
migrate,
rollback,
}