diff --git a/store/sql_file_info_store.go b/store/sql_file_info_store.go index 426ec5c76d..762eac5d4e 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 {