1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-08 15:06:08 +02:00

Merge pull request #4641 from sbishel/MM-51303-add-schema-check (#4643)

Add  schema check for schema migration

(cherry picked from commit 5310193fa6)
This commit is contained in:
Scott Bishel 2023-03-15 06:49:32 -06:00 committed by GitHub
parent 7f54c4c349
commit 836c1873fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,6 +121,10 @@ func (s *SQLStore) isSchemaMigrationNeeded() (bool, error) {
"COLUMN_NAME": "dirty",
})
if s.dbType == model.MysqlDBType {
query = query.Where(sq.Eq{"TABLE_SCHEMA": s.schemaName})
}
row := query.QueryRow()
var count int