mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
19 lines
404 B
JavaScript
19 lines
404 B
JavaScript
|
const Helpers = require('./lib/helpers')
|
||
|
|
||
|
exports.tags = ['server-ce', 'server-pro']
|
||
|
|
||
|
const index = {
|
||
|
key: { imageName: 1 },
|
||
|
name: 'imageName_1',
|
||
|
}
|
||
|
|
||
|
exports.migrate = async client => {
|
||
|
const { db } = client
|
||
|
await Helpers.addIndexesToCollection(db.projects, [index])
|
||
|
}
|
||
|
|
||
|
exports.rollback = async client => {
|
||
|
const { db } = client
|
||
|
await Helpers.dropIndexesFromCollection(db.projects, [index])
|
||
|
}
|