mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-21 13:38:56 +02:00
Fix table_schema check for postgres (#4723)
This commit is contained in:
parent
c9e8dd3d8d
commit
6556a8dd10
@ -127,7 +127,7 @@ func (s *SQLStore) isSchemaMigrationNeeded() (bool, error) {
|
||||
case model.MysqlDBType:
|
||||
query = query.Where(sq.Eq{"TABLE_SCHEMA": s.schemaName})
|
||||
case model.PostgresDBType:
|
||||
query = query.Where(sq.Eq{"TABLE_SCHEMA": "current_schema()"})
|
||||
query = query.Where("table_schema = current_schema()")
|
||||
}
|
||||
|
||||
rows, err := query.Query()
|
||||
|
Loading…
Reference in New Issue
Block a user