chore(prisma): add missing migration for notebook hierarchy and trash
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 4s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 4s
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Label" ADD COLUMN "type" TEXT NOT NULL DEFAULT 'user';
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "UserAISettings" ADD COLUMN "autoSave" BOOLEAN NOT NULL DEFAULT true;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Notebook" ADD COLUMN "parentId" TEXT,
|
||||
ADD COLUMN "trashedAt" TIMESTAMP(3);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Notebook_parentId_idx" ON "Notebook"("parentId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Notebook_trashedAt_idx" ON "Notebook"("trashedAt");
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Notebook" ADD CONSTRAINT "Notebook_parentId_fkey" FOREIGN KEY ("parentId") REFERENCES "Notebook"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
Reference in New Issue
Block a user