loopdb: add ability to track manual migrations

This commit is contained in:
Andras Banki-Horvath 2024-05-31 08:45:34 +02:00
parent 4f5c806ba5
commit c650cdc8a8
No known key found for this signature in database
GPG key ID: 80E5375C094198D8
11 changed files with 151 additions and 0 deletions

View file

@ -359,3 +359,17 @@ func (s *StoreMock) BatchUpdateLoopOutSwapCosts(ctx context.Context,
return nil
}
// HasMigration returns true if the migration with the given ID has been done.
func (s *StoreMock) HasMigration(ctx context.Context, migrationID string) (
bool, error) {
return false, errUnimplemented
}
// SetMigration marks the migration with the given ID as done.
func (s *StoreMock) SetMigration(ctx context.Context,
migrationID string) error {
return errUnimplemented
}