mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Bump max allowed file uploads per post (#17948)
This commit is contained in:
@@ -8588,7 +8588,7 @@
|
||||
},
|
||||
{
|
||||
"id": "model.post.is_valid.file_ids.app_error",
|
||||
"translation": "Invalid file ids. Note that uploads are limited to 5 files maximum. Please use additional posts for more files."
|
||||
"translation": "Invalid file ids. Note that uploads are limited to 10 files maximum. Please use additional posts for more files."
|
||||
},
|
||||
{
|
||||
"id": "model.post.is_valid.filenames.app_error",
|
||||
|
||||
@@ -145,7 +145,7 @@ func newSqlPostStore(sqlStore *SqlStore, metrics einterfaces.MetricsInterface) s
|
||||
table.ColMap("Hashtags").SetMaxSize(1000)
|
||||
table.ColMap("Props").SetDataType(sqlStore.jsonDataType())
|
||||
table.ColMap("Filenames").SetMaxSize(model.PostFilenamesMaxRunes)
|
||||
table.ColMap("FileIds").SetMaxSize(300)
|
||||
table.ColMap("FileIds").SetMaxSize(model.PostFileidsMaxRunes)
|
||||
table.ColMap("RemoteId").SetMaxSize(26)
|
||||
}
|
||||
|
||||
|
||||
@@ -1316,6 +1316,9 @@ func upgradeDatabaseToVersion600(sqlStore *SqlStore) {
|
||||
sqlStore.GetMaster().ExecNoTimeout("UPDATE CommandWebhooks SET RootId = ParentId WHERE RootId = '' AND RootId != ParentId")
|
||||
sqlStore.RemoveColumnIfExists("CommandWebhooks", "ParentId")
|
||||
|
||||
// allow 10 files per post
|
||||
sqlStore.AlterColumnTypeIfExists("Posts", "FileIds", "text", "varchar(300)")
|
||||
|
||||
// saveSchemaVersion(sqlStore, Version600)
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user