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:
parent
4054294f5b
commit
610cab5dea
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user