overleaf/services/web/migrations/lib/template.js
Jakob Ackermann eef5cd00e3 Merge pull request #6247 from overleaf/jpa-cleanup-mongo
[migrations] delete unused collections and properly apply saml indexes

GitOrigin-RevId: eafcde98cbb603c275986a5bca708b9f8221877f
2022-01-11 09:03:34 +00:00

15 lines
398 B
JavaScript

/* eslint-disable no-unused-vars */
const Helpers = require('./lib/helpers')
exports.tags = ['server-ce', 'server-pro', 'saas']
exports.migrate = async client => {
const { db } = client
// await Helpers.addIndexesToCollection(db.wombats, [{ name: 1 }])
}
exports.rollback = async client => {
const { db } = client
// await Helpers.dropIndexesFromCollection(db.wombats, [{ name: 1 }])
}