Files
rdp-proxy/backend/migrations/000006_default_org_memberships_backfill.down.sql
T
2026-04-28 22:29:50 +03:00

8 lines
162 B
SQL

DELETE FROM organization_memberships
WHERE organization_id IN (
SELECT id
FROM organizations
WHERE slug = 'default'
)
AND invited_by_user_id IS NULL;