mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
23 lines
423 B
JavaScript
23 lines
423 B
JavaScript
|
const Helpers = require('./lib/helpers')
|
||
|
|
||
|
exports.tags = ['saas']
|
||
|
|
||
|
const indexes = [
|
||
|
{
|
||
|
key: {
|
||
|
entityId: 1,
|
||
|
},
|
||
|
name: 'entityId_1',
|
||
|
},
|
||
|
]
|
||
|
|
||
|
exports.migrate = async client => {
|
||
|
const { db } = client
|
||
|
await Helpers.addIndexesToCollection(db.dropboxEntities, indexes)
|
||
|
}
|
||
|
|
||
|
exports.rollback = async client => {
|
||
|
const { db } = client
|
||
|
await Helpers.dropIndexesFromCollection(db.dropboxEntities, indexes)
|
||
|
}
|