Skip to content

Commit

Permalink
fix: delete expense_attributes_deletion_cache while workspace reset (
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 7ccc6e0 commit 1911088
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/sql/reset_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ 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;


_org_id := (SELECT org_id FROM workspaces WHERE id = _workspace_id);

DELETE
Expand Down

0 comments on commit 1911088

Please sign in to comment.