Add an additional index on the transaction table, and add previously created indices to the requisite 'down' SQL script

This commit is contained in:
Z. Charles Dziura 2025-03-06 16:34:14 -05:00
parent fd04e6445b
commit 7f2e7e8e8d
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,9 @@ DROP INDEX IF EXISTS user_username_uniq_idx;
DROP INDEX IF EXISTS user_email_uniq_idx;
DROP INDEX IF EXISTS permission_category_idx;
DROP INDEX IF EXISTS permission_category_name_idx;
DROP INDEX IF EXISTS user_account_permission_user_id_idx;
DROP INDEX IF EXISTS user_account_permission_account_id_idx;
DROP INDEX IF EXISTS transaction_budget_id_idx
DROP TABLE IF EXISTS public.user_account_permission;
DROP TABLE IF EXISTS public.account;

View file

@ -103,6 +103,8 @@ CREATE TABLE IF NOT EXISTS
updated_at TIMESTAMP WITH TIME ZONE NULL
);
CREATE INDEX IF NOT EXISTS transaction_budget_id_idx ON public.transaction(budget_id);
CREATE TABLE IF NOT EXISTS
public.transaction_line_item (
id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,