From bfbabd48afe9afa021a3d19ae2c735f9cb707129 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 3 Feb 2017 18:34:27 -0500 Subject: [PATCH] Adding PostId index (#5299) --- store/sql_file_info_store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/store/sql_file_info_store.go b/store/sql_file_info_store.go index 426ec5c76df..762eac5d4ee 100644 --- a/store/sql_file_info_store.go +++ b/store/sql_file_info_store.go @@ -33,6 +33,7 @@ func (fs SqlFileInfoStore) CreateIndexesIfNotExists() { fs.CreateIndexIfNotExists("idx_fileinfo_update_at", "FileInfo", "UpdateAt") fs.CreateIndexIfNotExists("idx_fileinfo_create_at", "FileInfo", "CreateAt") fs.CreateIndexIfNotExists("idx_fileinfo_delete_at", "FileInfo", "DeleteAt") + fs.CreateIndexIfNotExists("idx_fileinfo_postid_at", "FileInfo", "PostId") } func (fs SqlFileInfoStore) Save(info *model.FileInfo) StoreChannel {