Skip to content

Commit

Permalink
chore: reorder migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Nov 4, 2024
1 parent e54fe29 commit 8f07a8c
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/controller/ledger/controller_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (ctrl *DefaultController) Export(ctx context.Context, w ExportWriter) error
}

func (ctrl *DefaultController) IsDatabaseUpToDate(ctx context.Context) (bool, error) {
return ctrl.store.IsUpToDate(ctx)
return ctrl.store.HasMinimalVersion(ctx)
}

func (ctrl *DefaultController) GetVolumesWithBalances(ctx context.Context, q GetVolumesWithBalancesQuery) (*bunpaginate.Cursor[ledger.VolumesWithBalanceByAssetByAccount], error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/ledger/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type Store interface {
GetAccount(ctx context.Context, q GetAccountQuery) (*ledger.Account, error)
GetAggregatedBalances(ctx context.Context, q GetAggregatedBalanceQuery) (ledger.BalancesByAssets, error)
GetVolumesWithBalances(ctx context.Context, q GetVolumesWithBalancesQuery) (*bunpaginate.Cursor[ledger.VolumesWithBalanceByAssetByAccount], error)
IsUpToDate(ctx context.Context) (bool, error)
HasMinimalVersion(ctx context.Context) (bool, error)
GetMigrationsInfo(ctx context.Context) ([]migrations.Info, error)
}

Expand Down
6 changes: 3 additions & 3 deletions internal/controller/ledger/store_generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8f07a8c

Please sign in to comment.