Skip to content

Commit

Permalink
fix: delete expense_attributes_deletion_cache in workspace reset (#181
Browse files Browse the repository at this point in the history
)
  • Loading branch information
1 parent 5e21fca commit 3030955
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/sql/reset_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ BEGIN
GET DIAGNOSTICS rcount = ROW_COUNT;
RAISE NOTICE 'Deleted % users', rcount;

DELETE
FROM expense_attributes_deletion_cache
WHERE workspace_id = _workspace_id;
GET DIAGNOSTICS rcount = ROW_COUNT;
RAISE NOTICE 'Deleted % expense_attributes_deletion_cache', rcount;

DELETE
FROM workspaces w
WHERE w.id = _workspace_id;
Expand Down

0 comments on commit 3030955

Please sign in to comment.