Files
Momento/memento-note/scripts/update-colors.ts
Antigravity 1fcea6ed7d
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 7s
feat: brainstorm sessions, PDF document Q&A, embedding fixes, and UI improvements
- Add brainstorm feature with collaborative canvas, AI idea generation, live cursors, playback, and export
- Add PDF upload/extraction/ingestion pipeline with pgvector document search (RAG)
- Add document Q&A overlay with streaming chat and PDF preview
- Add note attachments UI with status polling, grid layout, and auto-scroll
- Add task extraction AI tool and agent executor improvements
- Fix NoteEmbedding missing updatedAt column, re-index 66 notes with 1536-dim embeddings
- Fix brainstorm 'Create Note' button: add success toast and redirect to created note
- Fix memory echo notification infinite polling
- Fix chat route to always include document_search tool
- Add brainstorm i18n keys across all 14 locales
- Add socket server for real-time brainstorm collaboration
- Add hierarchical notebook selector and organize notebook dialog improvements
- Add sidebar brainstorm section with session management
- Update prisma schema with brainstorm tables, attachments, and document chunks
2026-05-14 17:43:21 +00:00

42 lines
1.1 KiB
TypeScript

import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
async function main() {
const OLD_COLOR = '#75B2D6'
const NEW_COLOR = '#A47148'
console.log(`Updating colors from ${OLD_COLOR} to ${NEW_COLOR}...`)
// Update Notebooks
const updatedNotebooks = await prisma.notebook.updateMany({
where: { color: OLD_COLOR },
data: { color: NEW_COLOR }
})
console.log(`Updated ${updatedNotebooks.count} notebooks.`)
// Update Labels (if any use this color)
const updatedLabels = await prisma.label.updateMany({
where: { color: OLD_COLOR },
data: { color: NEW_COLOR }
})
console.log(`Updated ${updatedLabels.count} labels.`)
// Update Notes (some notes might have this as a string color in metadata or field)
// Note.color is usually "default", but let's check
const updatedNotes = await prisma.note.updateMany({
where: { color: OLD_COLOR },
data: { color: NEW_COLOR }
})
console.log(`Updated ${updatedNotes.count} notes.`)
}
main()
.catch(e => {
console.error(e)
process.exit(1)
})
.finally(async () => {
await prisma.$disconnect()
})