mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 20:33:36 -05:00
35ee137067
GitOrigin-RevId: 26a03c0192ae673110bfa65e0b293c586dc4958a
22 lines
443 B
JavaScript
22 lines
443 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 client => {
|
|
const { db } = client
|
|
await Helpers.addIndexesToCollection(db.projects, indexes)
|
|
}
|
|
|
|
exports.rollback = async client => {
|
|
const { db } = client
|
|
await Helpers.dropIndexesFromCollection(db.projects, indexes)
|
|
}
|