mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Update default MySQL password for unit tests (#9982)
* Update default MySQL password for unit tests * stub out AlterColumnDefaultIfExists for SQLite
This commit is contained in:
committed by
Jesse Hallam
parent
a84eb6505f
commit
32c35e254e
@@ -699,6 +699,10 @@ func (ss *SqlSupplier) AlterColumnDefaultIfExists(tableName string, columnName s
|
||||
tableName = strings.ToLower(tableName)
|
||||
columnName = strings.ToLower(columnName)
|
||||
defaultValue = *postgresColDefault
|
||||
} else if ss.DriverName() == model.DATABASE_DRIVER_SQLITE {
|
||||
// SQLite doesn't support altering column defaults, but we don't use this in
|
||||
// production so just ignore.
|
||||
return true
|
||||
} else {
|
||||
mlog.Critical("Failed to alter column default because of missing driver")
|
||||
time.Sleep(time.Second)
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
const (
|
||||
defaultMysqlDSN = "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s"
|
||||
defaultPostgresqlDSN = "postgres://mmuser:mostest@dockerhost:5432/mattermost_test?sslmode=disable&connect_timeout=10"
|
||||
defaultMysqlRootPWD = "passwd"
|
||||
defaultMysqlRootPWD = "mostest"
|
||||
)
|
||||
|
||||
func getEnv(name, defaultValue string) string {
|
||||
|
||||
Reference in New Issue
Block a user