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:
@@ -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 *
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user