Run version 17 migration upon startup
This commit is contained in:
@@ -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();
|
||||
},
|
||||
},
|
||||
];
|
||||
}());
|
||||
|
Reference in New Issue
Block a user