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:
parent
908a96ae30
commit
63c7f8b7fc
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user