fix: Schema compatibility - 8 column/table fixes found during testing

Fixed issues discovered during comprehensive testing of 164 tools:

- groups.ts: Remove non-existent description column
- analytics.ts: Use group_permissions instead of collection_group_memberships
- notifications.ts: Remove non-existent data column
- imports-tools.ts: Remove non-existent type/documentCount/fileCount columns
- emojis.ts: Graceful handling when emojis table doesn't exist
- teams.ts: Remove passkeysEnabled/description/preferences columns
- collections.ts: Use lastModifiedById instead of updatedById
- revisions.ts: Use lastModifiedById instead of updatedById

Tested 45+ tools against production (hub.descomplicar.pt)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-31 17:23:00 +00:00
parent 7d2a014b74
commit 56f37892c0
10 changed files with 62 additions and 15 deletions

View File

@@ -47,8 +47,8 @@ const listImports: BaseTool<ImportListArgs> = {
const result = await pgClient.query(`
SELECT
i.id, i.state, i.type, i."documentCount", i."fileCount",
i."teamId", i."createdById", i."integrationId",
i.id, i.state,
i."teamId", i."createdById",
i."createdAt", i."updatedAt",
u.name as "createdByName",
t.name as "teamName"