chore: calculate total balance for space
This commit is contained in:
parent
b48fcbfaa6
commit
694b774986
6 changed files with 35 additions and 23 deletions
9
internal/db/migrations/00004_add_balance_to_accounts.sql
Normal file
9
internal/db/migrations/00004_add_balance_to_accounts.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE accounts ADD COLUMN balance TEXT NOT NULL DEFAULT '0.00';
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE accounts DROP COLUMN balance;
|
||||
-- +goose StatementEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue