mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-11 18:13:52 +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",
|
"TABLE_NAME": s.tablePrefix + "schema_migrations",
|
||||||
})
|
})
|
||||||
|
|
||||||
switch s.dbType {
|
if s.dbType == 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:
|
|
||||||
query = query.Where(sq.Eq{"TABLE_SCHEMA": "current_schema()"})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rows, err := query.Query()
|
rows, err := query.Query()
|
||||||
|
Loading…
Reference in New Issue
Block a user