mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04:00
7258ddcf02
drop unused collections GitOrigin-RevId: 4b079f15dca349ef6a5aed8d9dcb35478819c2ce
31 lines
505 B
JavaScript
31 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,
|
|
}
|