mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-23 18:34:02 +02:00
Add schema check for schema migration (cherry picked from commit 5310193fa6a07cabe5174cc85f8376c5f7f1d13e)
This commit is contained in:
parent
7f54c4c349
commit
836c1873fa
@ -121,6 +121,10 @@ func (s *SQLStore) isSchemaMigrationNeeded() (bool, error) {
|
|||||||
"COLUMN_NAME": "dirty",
|
"COLUMN_NAME": "dirty",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if s.dbType == model.MysqlDBType {
|
||||||
|
query = query.Where(sq.Eq{"TABLE_SCHEMA": s.schemaName})
|
||||||
|
}
|
||||||
|
|
||||||
row := query.QueryRow()
|
row := query.QueryRow()
|
||||||
|
|
||||||
var count int
|
var count int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user