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:
parent
165b23a3e6
commit
e9d4aeba0e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user