[local-sync] Add index for Thread.id (#4)

This commit is contained in:
Mark Hahnenberg 2016-12-09 11:12:47 -08:00 committed by GitHub
parent 587f7787a6
commit 60bca4acb2

View file

@ -23,6 +23,7 @@ module.exports = (sequelize, Sequelize) => {
participants: buildJSONARRAYColumnOptions('participants'),
}, {
indexes: [
{ fields: ['id'], unique: true },
{ fields: ['subject'] },
{ fields: ['remoteThreadId'] },
],