20231110192205_drop_docops_collection.mjs 330 B

123456789101112131415161718
  1. import Helper from './lib/helpers.mjs'
  2. const { dropCollection } = Helper
  3. const tags = ['server-ce', 'server-pro', 'saas']
  4. const migrate = async () => {
  5. await dropCollection('docOps')
  6. }
  7. const rollback = async client => {
  8. // there's no rollback: we can't recover the data
  9. }
  10. export default {
  11. tags,
  12. migrate,
  13. rollback,
  14. }