fix(prisma): colonnes Agent sourceNoteIds / slideTheme / slideStyle + migration
Some checks failed
Deploy to Production / Build and Deploy (push) Has been cancelled
Some checks failed
Deploy to Production / Build and Deploy (push) Has been cancelled
Répare le typecheck Next () : le code utilisait ces champs alors que le schéma sur main ne les exposait pas encore. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
-- AlterTable: Agent — notes sources explicites + options slides (aligné schema.prisma)
|
||||
DO $$ BEGIN
|
||||
ALTER TABLE "Agent" ADD COLUMN "sourceNoteIds" TEXT;
|
||||
EXCEPTION WHEN duplicate_column THEN NULL;
|
||||
END $$;
|
||||
|
||||
DO $$ BEGIN
|
||||
ALTER TABLE "Agent" ADD COLUMN "slideTheme" TEXT;
|
||||
EXCEPTION WHEN duplicate_column THEN NULL;
|
||||
END $$;
|
||||
|
||||
DO $$ BEGIN
|
||||
ALTER TABLE "Agent" ADD COLUMN "slideStyle" TEXT;
|
||||
EXCEPTION WHEN duplicate_column THEN NULL;
|
||||
END $$;
|
||||
@@ -311,6 +311,9 @@ model Agent {
|
||||
isEnabled Boolean @default(true)
|
||||
targetNotebookId String?
|
||||
sourceNotebookId String?
|
||||
sourceNoteIds String?
|
||||
slideTheme String?
|
||||
slideStyle String?
|
||||
tools String? @default("[]")
|
||||
maxSteps Int @default(10)
|
||||
notifyEmail Boolean @default(false)
|
||||
|
||||
Reference in New Issue
Block a user