Files
windmill/backend/windmill-api-workspaces
Ruben FiszelandClaude Opus 4.8 f229a21e04 fix(backend): clean up unique_ext_jwt_token on workspace deletion
The workspace_id column on unique_ext_jwt_token (migration 20260409145556)
has no FK constraint on the workspace table, and delete_workspace did not
remove its rows. Deleted workspaces left orphaned external JWT token records
that kept appearing in the superadmin External JWTs listing.

Add a DELETE FROM unique_ext_jwt_token WHERE workspace_id = $1 alongside the
other per-table cleanup statements in delete_workspace.

Fixes WIN-2078

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 12:25:59 +00:00
..
2026-04-07 21:03:06 +00:00