Added Archived column to FileInfo (#20164)

* Added Archived column to FileInfo

* fixed typo

* Added new column to store column list

* Fixing tests

* Updated migration number to syncup with master
Этот коммит содержится в:
Harshil Sharma
2022-05-23 12:15:56 +05:30
коммит произвёл GitHub
родитель c100fc2135
Коммит b13d5e7466
6 изменённых файлов: 34 добавлений и 0 удалений

Просмотреть файл

@@ -41,6 +41,7 @@ type fileInfoWithChannelID struct {
MiniPreview *[]byte
Content string
RemoteId *string
Archived bool
}
func (fi fileInfoWithChannelID) ToModel() *model.FileInfo {
@@ -103,6 +104,7 @@ func newSqlFileInfoStore(sqlStore *SqlStore, metrics einterfaces.MetricsInterfac
"FileInfo.MiniPreview",
"Coalesce(FileInfo.Content, '') AS Content",
"Coalesce(FileInfo.RemoteId, '') AS RemoteId",
"FileInfo.Archived",
}
return s