mirror of
https://github.com/mattermost/focalboard.git
synced 2025-02-01 19:14:35 +02:00
Fix schema migration check for postgres (#4660)
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
01fb589236
commit
7feb637ce9
@ -121,8 +121,11 @@ func (s *SQLStore) isSchemaMigrationNeeded() (bool, error) {
|
|||||||
"COLUMN_NAME": "dirty",
|
"COLUMN_NAME": "dirty",
|
||||||
})
|
})
|
||||||
|
|
||||||
if s.dbType == model.MysqlDBType {
|
switch s.dbType {
|
||||||
|
case model.MysqlDBType:
|
||||||
query = query.Where(sq.Eq{"TABLE_SCHEMA": s.schemaName})
|
query = query.Where(sq.Eq{"TABLE_SCHEMA": s.schemaName})
|
||||||
|
case model.PostgresDBType:
|
||||||
|
query = query.Where(sq.Eq{"TABLE_SCHEMA": "current_schema()"})
|
||||||
}
|
}
|
||||||
|
|
||||||
row := query.QueryRow()
|
row := query.QueryRow()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user