Add an index on message.expireTimer

This allows us to query all expiring messages on startup.
pull/749/head
lilia 9 years ago
parent b3e932dce8
commit b888e01044

@ -179,6 +179,16 @@
});
next();
}
},
{
version: "10.0",
migrate: function(transaction, next) {
console.log('migration 10.0');
console.log('creating expiring message index');
var messages = transaction.objectStore('messages');
messages.createIndex('expire', 'expireTimer', { unique: false });
next();
}
}
];
}());

Loading…
Cancel
Save