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.
This commit is contained in:
lilia 2015-01-28 02:17:46 -10:00
parent 1334032a89
commit ed928aa4e3
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}
}