mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 09:03:36 -05:00
32 lines
505 B
JavaScript
32 lines
505 B
JavaScript
|
import Helpers from './lib/helpers.mjs'
|
||
|
|
||
|
const tags = ['saas']
|
||
|
|
||
|
const unusedCollections = [
|
||
|
'githubBuilds',
|
||
|
'githubRepos',
|
||
|
'userstubs',
|
||
|
'templates',
|
||
|
'quotes',
|
||
|
'folders',
|
||
|
'files',
|
||
|
'objectlabs-system',
|
||
|
'objectlabs-system.admin.collections',
|
||
|
]
|
||
|
|
||
|
const migrate = async client => {
|
||
|
for (const name of unusedCollections) {
|
||
|
await Helpers.dropCollection(name)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const rollback = async client => {
|
||
|
// can't really do anything here
|
||
|
}
|
||
|
|
||
|
export default {
|
||
|
tags,
|
||
|
migrate,
|
||
|
rollback,
|
||
|
}
|