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('migration 17');
|
||||||
console.log('Start migration to database version 17');
|
console.log('Start migration to database version 17');
|
||||||
|
|
||||||
|
const start = Date.now();
|
||||||
await Migrations.V17.run(transaction);
|
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();
|
next();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue