Skip to content

Commit

Permalink
remove fee reserve id from tx entry
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiidb committed Jul 4, 2023
1 parent 1677a97 commit 9ba016b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions db/migrations/20230703120000_add_tx_entry_type.up.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
alter table transaction_entries
add column entry_type character varying,
add column fee_reserve_id bigint;
add column entry_type character varying;
1 change: 0 additions & 1 deletion db/models/transactionentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type TransactionEntry struct {
ParentID int64 `bun:",nullzero"`
Parent *TransactionEntry `bun:"rel:belongs-to"`
CreditAccountID int64 `bun:",notnull"`
FeeReserveID int64 `bun:",nullzero"`
FeeReserve *TransactionEntry `bun:"rel:belongs-to"`
CreditAccount *Account `bun:"rel:belongs-to,join:credit_account_id=id"`
DebitAccountID int64 `bun:",notnull"`
Expand Down

0 comments on commit 9ba016b

Please sign in to comment.