Import and display Status
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
12
postgres/schema/0013_add-transaction-status.sql
Normal file
12
postgres/schema/0013_add-transaction-status.sql
Normal file
@ -0,0 +1,12 @@
|
||||
-- +goose Up
|
||||
CREATE TYPE transaction_status AS ENUM (
|
||||
'Reconciled',
|
||||
'Cleared',
|
||||
'Uncleared'
|
||||
);
|
||||
|
||||
ALTER TABLE transactions ADD COLUMN status transaction_status NOT NULL DEFAULT 'Uncleared';
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE transactions DROP COLUMN status;
|
||||
DROP TYPE transaction_status;
|
Reference in New Issue
Block a user