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:
2026-01-31 18:08:52 +00:00
parent 2808d4aec0
commit 354e8ae21f
9 changed files with 140 additions and 78 deletions

View File

@@ -275,6 +275,7 @@ const createShare: BaseTool<CreateShareArgs> = {
const query = `
INSERT INTO shares (
id,
"urlId",
"documentId",
"userId",
@@ -282,9 +283,11 @@ const createShare: BaseTool<CreateShareArgs> = {
"includeChildDocuments",
published,
views,
"allowIndexing",
"showLastUpdated",
"createdAt",
"updatedAt"
) VALUES ($1, $2, $3, $4, $5, $6, 0, NOW(), NOW())
) VALUES (gen_random_uuid(), $1, $2, $3, $4, $5, $6, 0, false, false, NOW(), NOW())
RETURNING *
`;