summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--store/sql_file_info_store.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/store/sql_file_info_store.go b/store/sql_file_info_store.go
index 426ec5c76..762eac5d4 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 {