1
0
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:
Miguel de la Cruz 2023-04-26 22:53:07 +02:00 committed by GitHub
parent c9e8dd3d8d
commit 6556a8dd10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ func (s *SQLStore) isSchemaMigrationNeeded() (bool, error) {
case model.MysqlDBType: case model.MysqlDBType:
query = query.Where(sq.Eq{"TABLE_SCHEMA": s.schemaName}) query = query.Where(sq.Eq{"TABLE_SCHEMA": s.schemaName})
case model.PostgresDBType: case model.PostgresDBType:
query = query.Where(sq.Eq{"TABLE_SCHEMA": "current_schema()"}) query = query.Where("table_schema = current_schema()")
} }
rows, err := query.Query() rows, err := query.Query()