mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 00:18:45 +01:00
Close database after migration
This is not 100% reliable as database connections are closed in a separate
thread according to the documentation:
- https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/close
- https://stackoverflow.com/a/18639298
- 80c7a06d5c/backbone-indexeddb.js (L558-L565)
This commit is contained in:
@@ -11,5 +11,5 @@ exports.migrations = [
|
||||
},
|
||||
];
|
||||
|
||||
exports.run = ({ Backbone, Database } = {}) =>
|
||||
runMigrations({ Backbone, database: Database });
|
||||
exports.run = ({ Backbone, closeDatabase, Database } = {}) =>
|
||||
runMigrations({ Backbone, closeDatabase, database: Database });
|
||||
|
||||
Reference in New Issue
Block a user