Measure duration of migration
This commit is contained in:
parent
a619d48fac
commit
db2941cbb0
1 changed files with 6 additions and 1 deletions
|
@ -241,9 +241,14 @@
|
|||
console.log('migration 17');
|
||||
console.log('Start migration to database version 17');
|
||||
|
||||
const start = Date.now();
|
||||
await Migrations.V17.run(transaction);
|
||||
const duration = Date.now() - start;
|
||||
|
||||
console.log('Complete migration to database version 17');
|
||||
console.log(
|
||||
'Complete migration to database version 17.',
|
||||
`Duration: ${duration}ms`
|
||||
);
|
||||
next();
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue