Skip to content

Commit

Permalink
fix: delete expense_attributes_deletion_cache in workspace reset
Browse files Browse the repository at this point in the history
  • Loading branch information
JustARatherRidiculouslyLongUsername committed Dec 13, 2024
1 parent ed880fd commit 962ac50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sql/functions/reset-workspace.sql
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ BEGIN
GET DIAGNOSTICS rcount = ROW_COUNT;
RAISE NOTICE 'Deleted % django_q_schedule', 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 auth_tokens aut
-- WHERE aut.user_id IN (
Expand Down

0 comments on commit 962ac50

Please sign in to comment.