SQLStore: Enable migration locking by default (#84983)

* Introduce new configuration for migration locking

* Remove feature toggle

* Fix test and turn it into an integration

* Fix docs
This commit is contained in:
Sofia Papagiannaki
2024-03-22 21:22:29 +02:00
committed by GitHub
parent 980b9a62c6
commit 33b653534e
13 changed files with 30 additions and 23 deletions

View File

@@ -67,7 +67,7 @@ func ProvideService(cfg *setting.Cfg,
}
s.features = features
if err := s.Migrate(features.IsEnabledGlobally(featuremgmt.FlagMigrationLocking)); err != nil {
if err := s.Migrate(s.dbCfg.MigrationLock); err != nil {
return nil, err
}