Keep object stores after conversations migrate to SQLCipher

This commit is contained in:
Scott Nonnenberg 2018-10-15 12:24:43 -07:00
parent bc0ec92ad2
commit 7532f397ea
3 changed files with 15 additions and 24 deletions

View file

@ -165,6 +165,17 @@ const migrations = [
next();
},
},
{
version: 19,
migrate(transaction, next) {
window.log.info('Migration 19');
// Empty because we don't want to cause incompatibility with users who have already
// run migration 19 when it was the object store removal.
next();
},
},
];
const database = {

View file

@ -6,12 +6,12 @@ const db = require('../database');
const settings = require('../settings');
const { runMigrations } = require('./run_migrations');
// These are cleanup migrations, to be run after migration to SQLCipher
// These are migrations for after the SQLCipher migration, currently not running
exports.migrations = [
{
version: 19,
version: 20,
migrate(transaction, next) {
window.log.info('Migration 19');
window.log.info('Migration 20');
window.log.info(
'Removing messages, unprocessed, and conversations object stores'
);