From ed928aa4e3c4c71a071ec6c2e9807fed84beb125 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 28 Jan 2015 02:17:46 -1000 Subject: [PATCH] Add index on conversation type So we can load only groups or only contacts. This changes the schema and requires you to delete your database to re-run the migration. --- js/database.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/database.js b/js/database.js index b036f9b2..d801c94b 100644 --- a/js/database.js +++ b/js/database.js @@ -32,6 +32,7 @@ var conversations = transaction.db.createObjectStore("conversations"); conversations.createIndex("inbox", "active_at", { unique: false }); conversations.createIndex("group", "members", { unique: false, multiEntry: true }); + conversations.createIndex("type", "type", { unique: false }); next(); } }