Files
Signal-Desktop/js/modules/migrations/migrations_1_database_without_attachment_data.js
Daniel Gasienica fcd30cd919 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)
2018-04-02 12:17:36 -04:00

16 lines
333 B
JavaScript

const { runMigrations } = require('./run_migrations');
exports.migrations = [
{
version: 18,
async migrate(transaction, next) {
console.log('Migration 18');
next();
},
},
];
exports.run = ({ Backbone, closeDatabase, Database } = {}) =>
runMigrations({ Backbone, closeDatabase, database: Database });