mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 15:53:54 -05:00
781a827e05
Drop oveleaf.history.display index from projects collection GitOrigin-RevId: 8fa393322f76f0a297182b32d5f296dd82f01f62
18 lines
388 B
JavaScript
18 lines
388 B
JavaScript
const Helpers = require('./lib/helpers')
|
|
|
|
exports.tags = ['saas']
|
|
|
|
const indexes = [
|
|
{
|
|
key: { 'overleaf.history.display': 1 },
|
|
name: 'overleaf.history.display_1',
|
|
},
|
|
]
|
|
|
|
exports.migrate = async ({ db }) => {
|
|
await Helpers.dropIndexesFromCollection(db.projects, indexes)
|
|
}
|
|
|
|
exports.rollback = async ({ db }) => {
|
|
await Helpers.addIndexesToCollection(db.projects, indexes)
|
|
}
|