From 610cab5deabb6029db9b7bbdfd7304c00f9a25ed Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Fri, 24 Mar 2023 12:51:45 +0100 Subject: [PATCH] Revert "Fix schema migration check for postgres" This reverts commit 4054294f5bea132e2c2e9d2ced000c7437103764. --- server/services/store/sqlstore/schema_table_migration.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/services/store/sqlstore/schema_table_migration.go b/server/services/store/sqlstore/schema_table_migration.go index 913a5320c..7a6f911dd 100644 --- a/server/services/store/sqlstore/schema_table_migration.go +++ b/server/services/store/sqlstore/schema_table_migration.go @@ -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()