fix: organize-notebook orphelin (sed console.log) + migration DB indexes
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m24s
CI / Deploy production (on server) (push) Successful in 23s

- organize-notebook.ts: lignes orphelines supprimées (console.log multi-ligne cassé par sed)
- Migration 20260629000000: CREATE INDEX contentUpdatedAt DESC + isPublic sur Note
- schema.prisma: commentaire SQL brut retiré (invalidait prisma)
This commit is contained in:
Antigravity
2026-07-05 13:34:47 +00:00
parent 5821e2c96f
commit d586048b52
3 changed files with 3 additions and 8 deletions

View File

@@ -205,10 +205,6 @@ export async function executeNotebookOrganization(plan: OrganizationPlan): Promi
})
if (!notebook) return { success: false, created: 0, moved: 0, error: 'Carnet introuvable' }
notebookId: plan.notebookId,
groups: plan.groups.map(g => ({ name: g.name, isNew: g.isNew, existingId: g.existingId, noteCount: g.notes.length }))
}))
let created = 0
let moved = 0

View File

@@ -0,0 +1,3 @@
-- Add indexes for performance
CREATE INDEX IF NOT EXISTS "Note_contentUpdatedAt_idx" ON "Note" ("contentUpdatedAt" DESC);
CREATE INDEX IF NOT EXISTS "Note_isPublic_idx" ON "Note" ("isPublic");

View File

@@ -749,10 +749,6 @@ model DocumentChunk {
@@index([attachmentId, chunkIndex])
}
-- Index vectoriel pour recherche sémantique sur DocumentChunk (HNSW)
-- CREATE INDEX IF NOT EXISTS document_chunk_embedding_hnsw_idx
-- ON "DocumentChunk" USING hnsw ("embedding" vector_cosine_ops);
// ===== BYOK (Story 3.5) =====
model UserAPIKey {