WIP: Skip this call when we skip migrations (#31216)

pull/31207/head
Dafydd 5 years ago committed by GitHub
parent d33375ade9
commit e17198af83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      pkg/services/sqlstore/sqlstore.go

@ -117,8 +117,10 @@ func (ss *SQLStore) Init() error {
return err
}
// Make sure the changes are synced, so they get shared with eventual other DB connections
if err := ss.Sync(); err != nil {
return err
if !ss.dbCfg.SkipMigrations {
if err := ss.Sync(); err != nil {
return err
}
}
return nil

Loading…
Cancel
Save