Add income_category_id only after categories table exists
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
CREATE TABLE budgets (
|
||||
id uuid DEFAULT uuid_generate_v4() PRIMARY KEY,
|
||||
name text NOT NULL,
|
||||
last_modification timestamp with time zone,
|
||||
income_category_id uuid NOT NULL REFERENCES categories (id) DEFERRABLE
|
||||
last_modification timestamp with time zone
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
|
Reference in New Issue
Block a user