1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

fix collation for personal server (#4080)

This commit is contained in:
Doug Lauder 2022-10-25 14:02:41 -04:00 committed by GitHub
parent 165b23a3e6
commit e9d4aeba0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -655,11 +655,11 @@ func (s *SQLStore) RunFixCollationsAndCharsetsMigration() error {
}
// get collation and charSet setting that Channels is using.
// when unit testing, no channels tables exist so just set to a default.
// when personal server or unit testing, no channels tables exist so just set to a default.
var collation string
var charSet string
var err error
if os.Getenv("FOCALBOARD_UNIT_TESTING") == "1" {
if !s.isPlugin || os.Getenv("FOCALBOARD_UNIT_TESTING") == "1" {
collation = "utf8mb4_general_ci"
charSet = "utf8mb4"
} else {