Run version 17 migration upon startup
This commit is contained in:
parent
ac31dcbd75
commit
dbdf6fd880
1 changed files with 14 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue