feat: add currency to accounts
This commit is contained in:
parent
4be5385db7
commit
ca0fec563e
21 changed files with 627 additions and 63 deletions
|
|
@ -34,5 +34,5 @@ CREATE TABLE space_invitations (
|
|||
-- +goose StatementBegin
|
||||
DROP TABLE space_invitations;
|
||||
DROP TABLE space_members;
|
||||
DROP TABLE spaces;
|
||||
DROP TABLE spaces CASCADE;
|
||||
-- +goose StatementEnd
|
||||
|
|
|
|||
|
|
@ -40,5 +40,5 @@ CREATE TABLE transaction_tags (
|
|||
DROP TABLE transaction_tags;
|
||||
DROP TABLE tags;
|
||||
DROP TABLE transactions;
|
||||
DROP TABLE accounts;
|
||||
DROP TABLE accounts CASCADE;
|
||||
-- +goose StatementEnd
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE accounts ADD COLUMN currency TEXT NOT NULL DEFAULT 'CAD';
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE accounts DROP COLUMN currency;
|
||||
-- +goose StatementEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue