Split database migrations into pre- and post-attachment migration

- Run light-weight migrations before attachment migration.
- Run regular migrations after attachments have been moved to disk.
This commit is contained in:
Daniel Gasienica
2018-03-26 14:57:10 -04:00
parent 3841154295
commit d16178638e
6 changed files with 193 additions and 193 deletions

View File

@@ -0,0 +1,9 @@
exports.migrations = [
{
version: 18,
async migrate(transaction, next) {
console.log('Migration 18');
next();
},
},
];