Remove hard-coded database connection settings

This commit is contained in:
Daniel Gasienica 2018-03-28 10:23:36 -04:00
parent 1df6dc8378
commit eca930770c
3 changed files with 32 additions and 11 deletions

View file

@ -87,7 +87,13 @@
await Migrations0DatabaseWithAttachmentData.run({ Backbone });
console.log('Migrate attachments to disk');
await MessageDataMigrator.processAll({ Backbone, upgradeMessageSchema });
const database = Migrations0DatabaseWithAttachmentData.getDatabase();
await MessageDataMigrator.processAll({
Backbone,
databaseName: database.name,
databaseVersion: database.version,
upgradeMessageSchema,
});
console.log('Migrate database without attachments');
await Migrations1DatabaseWithoutAttachmentData.run({