mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #9212 from overleaf/jpa-record-dropbox-file-id
[third-party-datastore] start recording dropbox id for docs/files GitOrigin-RevId: 699fe63994848b65aa4d9cbc7966b867de56eabf
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user