mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 01:05:18 -05:00
18 lines
388 B
JavaScript
18 lines
388 B
JavaScript
|
exports.tags = ['server-ce', 'server-pro']
|
||
|
|
||
|
exports.migrate = async client => {
|
||
|
const { db } = client
|
||
|
const count = await db.projects.countDocuments({
|
||
|
'overleaf.history.display': { $ne: true },
|
||
|
})
|
||
|
if (count > 0) {
|
||
|
throw new Error(
|
||
|
`Found ${count} projects not migrated to Full Project History`
|
||
|
)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
exports.rollback = async client => {
|
||
|
// Not applicable
|
||
|
}
|