1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-11 18:13:52 +02:00

revert postgres change

This commit is contained in:
Scott Bishel 2023-03-14 12:04:49 -06:00
parent c2efb74d0d
commit 136fae748d

View File

@ -120,18 +120,9 @@ func (s *SQLStore) isSchemaMigrationNeeded() (bool, error) {
Select("COLUMN_NAME"). Select("COLUMN_NAME").
From("information_schema.COLUMNS"). From("information_schema.COLUMNS").
Where(sq.Eq{ Where(sq.Eq{
"TABLE_NAME": s.tablePrefix + "schema_migrations", "TABLE_NAME": s.tablePrefix + "schema_migrations",
})
if s.dbType == model.MysqlDBType {
query = query.Where(sq.Eq{
"TABLE_SCHEMA": s.schemaName, "TABLE_SCHEMA": s.schemaName,
}) })
} else {
query = query.Where(sq.Eq{
"TABLE_CATALOG": s.schemaName,
})
}
rows, err := query.Query() rows, err := query.Query()
if err != nil { if err != nil {