Run version 17 migration upon startup

This commit is contained in:
Daniel Gasienica 2018-03-14 11:47:18 -04:00
parent ac31dcbd75
commit dbdf6fd880
1 changed files with 14 additions and 0 deletions

View File

@ -8,6 +8,8 @@
(function () {
'use strict';
const { Migrations } = window.Signal;
window.Whisper = window.Whisper || {};
window.Whisper.Database = window.Whisper.Database || {};
window.Whisper.Database.id = window.Whisper.Database.id || 'signal';
@ -233,5 +235,17 @@
next();
},
},
{
version: 17,
async migrate(transaction, next) {
console.log('migration 17');
console.log('Start migration to database version 17');
await Migrations.V17.run(transaction);
console.log('Complete migration to database version 17');
next();
},
},
];
}());