overleaf/services/web/migrations/20220913125500_migrate_auditLog_to_collections.js
Jakob Ackermann 9362d286b7 Merge pull request #12560 from overleaf/jpa-faster-migration
[web] migrations: cut delay in auditLog migration from 10s to 10ms

GitOrigin-RevId: 2a6525212149c5e0f1ebfec4023f4e0fe91ecc5f
2023-04-12 08:04:05 +00:00

14 lines
308 B
JavaScript

const runScript = require('../scripts/migrate_audit_logs.js')
exports.tags = ['server-ce', 'server-pro']
exports.migrate = async () => {
const options = {
letUserDoubleCheckInputsFor: 10,
writeConcurrency: 5,
dryRun: false,
}
await runScript(options)
}
exports.rollback = async () => {}