Run version 17 migration upon startup

pull/1/head
Daniel Gasienica 7 years ago
parent ac31dcbd75
commit dbdf6fd880

@ -8,6 +8,8 @@
(function () { (function () {
'use strict'; 'use strict';
const { Migrations } = window.Signal;
window.Whisper = window.Whisper || {}; window.Whisper = window.Whisper || {};
window.Whisper.Database = window.Whisper.Database || {}; window.Whisper.Database = window.Whisper.Database || {};
window.Whisper.Database.id = window.Whisper.Database.id || 'signal'; window.Whisper.Database.id = window.Whisper.Database.id || 'signal';
@ -233,5 +235,17 @@
next(); 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();
},
},
]; ];
}()); }());

Loading…
Cancel
Save