Fix migrations
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
-- AlterTable
|
-- AlterTable
|
||||||
ALTER TABLE "comment_thread_targets" ADD COLUMN "workspaceId" TEXT NOT NULL;
|
ALTER TABLE "comment_thread_targets" ADD COLUMN "workspaceId" TEXT;
|
||||||
|
|
||||||
-- AddForeignKey
|
-- AddForeignKey
|
||||||
ALTER TABLE "comment_thread_targets" ADD CONSTRAINT "comment_thread_targets_workspaceId_fkey" FOREIGN KEY ("workspaceId") REFERENCES "workspaces"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
ALTER TABLE "comment_thread_targets" ADD CONSTRAINT "comment_thread_targets_workspaceId_fkey" FOREIGN KEY ("workspaceId") REFERENCES "workspaces"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|||||||
@ -384,9 +384,9 @@ model CommentThreadTarget {
|
|||||||
commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade)
|
commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade)
|
||||||
commentThreadId String
|
commentThreadId String
|
||||||
/// @TypeGraphQL.omit(input: true, output: false)
|
/// @TypeGraphQL.omit(input: true, output: false)
|
||||||
workspace Workspace @relation(fields: [workspaceId], references: [id])
|
workspace Workspace? @relation(fields: [workspaceId], references: [id])
|
||||||
/// @TypeGraphQL.omit(input: true, output: true)
|
/// @TypeGraphQL.omit(input: true, output: true)
|
||||||
workspaceId String
|
workspaceId String?
|
||||||
commentableType CommentableType
|
commentableType CommentableType
|
||||||
commentableId String
|
commentableId String
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user