mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-08 02:13:01 +00:00
23 lines
502 B
JavaScript
23 lines
502 B
JavaScript
const Helpers = require('./lib/helpers')
|
|
|
|
exports.tags = ['server-ce', 'server-pro', 'saas']
|
|
|
|
const indexes = [
|
|
{
|
|
unique: true,
|
|
key: {
|
|
doc_id: 1,
|
|
},
|
|
name: 'doc_id_1',
|
|
},
|
|
]
|
|
|
|
exports.migrate = async ({ nativeDb }) => {
|
|
const docOps = nativeDb.collection('docOps')
|
|
await Helpers.addIndexesToCollection(docOps, indexes)
|
|
}
|
|
|
|
exports.rollback = async ({ nativeDb }) => {
|
|
const docOps = nativeDb.collection('docOps')
|
|
await Helpers.dropIndexesFromCollection(docOps, indexes)
|
|
}
|