mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopdb: add ability to track manual migrations
This commit is contained in:
parent
4f5c806ba5
commit
c650cdc8a8
11 changed files with 151 additions and 0 deletions
|
|
@ -70,6 +70,13 @@ type SwapStore interface {
|
|||
BatchUpdateLoopOutSwapCosts(ctx context.Context,
|
||||
swaps map[lntypes.Hash]SwapCost) error
|
||||
|
||||
// HasMigration returns true if the migration with the given ID has
|
||||
// been done.
|
||||
HasMigration(ctx context.Context, migrationID string) (bool, error)
|
||||
|
||||
// SetMigration marks the migration with the given ID as done.
|
||||
SetMigration(ctx context.Context, migrationID string) error
|
||||
|
||||
// Close closes the underlying database.
|
||||
Close() error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue