1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

Revert "Fix schema migration check for postgres"

This reverts commit 4054294f5b.
This commit is contained in:
Miguel de la Cruz 2023-03-24 12:51:45 +01:00
parent 4054294f5b
commit 610cab5dea

View File

@ -123,11 +123,8 @@ func (s *SQLStore) isSchemaMigrationNeeded() (bool, error) {
"TABLE_NAME": s.tablePrefix + "schema_migrations",
})
switch s.dbType {
case model.MysqlDBType:
if s.dbType == model.MysqlDBType {
query = query.Where(sq.Eq{"TABLE_SCHEMA": s.schemaName})
case model.PostgresDBType:
query = query.Where(sq.Eq{"TABLE_SCHEMA": "current_schema()"})
}
rows, err := query.Query()