diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-10-19 11:12:40 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-10-19 11:12:40 -0400 |
commit | c7d00de68291f5a53353c1391d4548d3f2ec7c0c (patch) | |
tree | de1b15e26ed699ee140d21b266cd8bda52563472 | |
parent | a3ca10674056d4dfcfec5cfb404f3488f8bc4090 (diff) | |
download | chat-c7d00de68291f5a53353c1391d4548d3f2ec7c0c.tar.gz chat-c7d00de68291f5a53353c1391d4548d3f2ec7c0c.tar.bz2 chat-c7d00de68291f5a53353c1391d4548d3f2ec7c0c.zip |
Update db index for outgoing webhook
-rw-r--r-- | store/sql_webhook_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_webhook_store.go b/store/sql_webhook_store.go index 14469e2e7..1910984f0 100644 --- a/store/sql_webhook_store.go +++ b/store/sql_webhook_store.go @@ -40,7 +40,7 @@ func (s SqlWebhookStore) UpgradeSchemaIfNeeded() { func (s SqlWebhookStore) CreateIndexesIfNotExists() { s.CreateIndexIfNotExists("idx_incoming_webhook_user_id", "IncomingWebhooks", "UserId") s.CreateIndexIfNotExists("idx_incoming_webhook_team_id", "IncomingWebhooks", "TeamId") - s.CreateIndexIfNotExists("idx_outgoing_webhook_channel_id", "OutgoingWebhooks", "ChannelId") + s.CreateIndexIfNotExists("idx_outgoing_webhook_team_id", "OutgoingWebhooks", "TeamId") } func (s SqlWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) StoreChannel { |