Sync branch magefile with main #104308
@ -75,6 +75,10 @@ func OpenDB(ctx context.Context, dsn string) (*DB, error) {
|
|||||||
return nil, ErrIntegrity
|
return nil, ErrIntegrity
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Perform another vacuum after database migration, as that may have copied a
|
||||||
|
// lot of data and then dropped another lot of data.
|
||||||
|
db.vacuum()
|
||||||
|
|
||||||
closeConnOnReturn = false
|
closeConnOnReturn = false
|
||||||
return db, nil
|
return db, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user