fix: Schema bugs in create operations - id/urlId columns missing
Fixed 3 schema compatibility bugs found during Round 3 write testing: - create_document: Added id, urlId, teamId, isWelcome, fullWidth, insightsEnabled - create_collection: Added id, maintainerApprovalRequired - shares_create: Added id, allowIndexing, showLastUpdated All write operations now include required NOT NULL columns. Bumped version to 1.3.6. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -271,10 +271,10 @@ export const collectionsTools: BaseTool<any>[] = [
|
||||
|
||||
const query = `
|
||||
INSERT INTO collections (
|
||||
name, "urlId", "teamId", "createdById", description, icon, color,
|
||||
permission, sharing, index, "createdAt", "updatedAt"
|
||||
id, name, "urlId", "teamId", "createdById", description, icon, color,
|
||||
permission, sharing, "maintainerApprovalRequired", index, "createdAt", "updatedAt"
|
||||
)
|
||||
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, NOW(), NOW())
|
||||
VALUES (gen_random_uuid(), $1, $2, $3, $4, $5, $6, $7, $8, $9, false, $10, NOW(), NOW())
|
||||
RETURNING
|
||||
id, "urlId", name, description, icon, color, index, permission,
|
||||
sharing, "teamId", "createdById", "createdAt", "updatedAt"
|
||||
|
||||
Reference in New Issue
Block a user