refactor(db): rename search_space_roles table to workspace_roles

Phase 1 (rename DB) commit 1h: rename the roles table and flip both
inbound FKs (memberships.role_id, invites.role_id), plus the matching
raw-SQL cleanup in the obsidian plugin test.
This commit is contained in:
CREDO23 2026-06-26 12:31:49 +02:00
parent 0ed043379d
commit 35f80268df
2 changed files with 4 additions and 4 deletions

View file

@ -129,7 +129,7 @@ async def race_user_and_space(async_engine):
{"id": space_id},
)
await cleanup.execute(
text("DELETE FROM search_space_roles WHERE workspace_id = :id"),
text("DELETE FROM workspace_roles WHERE workspace_id = :id"),
{"id": space_id},
)
await cleanup.execute(