hedgedoc/bin/cleanup
David Mehren f606a7825f refactor(migrations): move cleanup code into migration
We cannot execute the cleanup script as a subprocess with sqlite,
as we now wrap the migrations in a SAVEPOINT, which blocks a second
process.

This moves the cleanup code into the migration file, so it can be
executed in-process.

Signed-off-by: David Mehren <git@herrmehren.de>
2022-11-06 22:24:48 +01:00

7 lines
155 B
JavaScript
Executable file

#!/usr/bin/env node
const cleanup = require('../lib/migrations/20200321153000-fix-account-deletion').cleanup
cleanup().then(() => {
process.exit(0)
})