satellitedb/satellitedbtest: creating a database shouldn't auto-migrate

Some tests need to control the migration progress manually.

Change-Id: I776c69b6d56dc35c7cb88688c4b827d6bba4b7ac
This commit is contained in:
Egon Elbre 2021-02-11 13:58:22 +02:00
parent 908a96ae30
commit 63c7f8b7fc
2 changed files with 5 additions and 1 deletions

View File

@ -649,6 +649,11 @@ func (planet *Planet) newSatellite(ctx context.Context, prefix string, index int
return nil, err
}
err = metabaseDB.MigrateToLatest(ctx)
if err != nil {
return nil, err
}
api, err := planet.newAPI(ctx, index, identity, db, pointerDB, metabaseDB, config, versionInfo)
if err != nil {
return nil, err

View File

@ -204,7 +204,6 @@ func CreateMetabaseDBOnTopOf(ctx context.Context, log *zap.Logger, tempDB *dbuti
if err != nil {
return nil, err
}
err = metabaseDB.MigrateToLatest(ctx)
return &tempMetabaseDB{MetabaseDB: metabaseDB, tempDB: tempDB}, err
}