The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix migrations
Charles Bochet574d23084ec6
diff --git a/server/src/database/migrations/20230721141406_alter_table_comment_thread_target_add_workspace_id/migration.sql b/server/src/database/migrations/20230721141406_alter_table_comment_thread_target_add_workspace_id/migration.sqlindex bb55717a7fa..25e2e1abea4 100644--- a/server/src/database/migrations/20230721141406_alter_table_comment_thread_target_add_workspace_id/migration.sql+++ b/server/src/database/migrations/20230721141406_alter_table_comment_thread_target_add_workspace_id/migration.sql@@ -5,7 +5,7 @@*/-- AlterTable-ALTER TABLE "comment_thread_targets" ADD COLUMN "workspaceId" TEXT NOT NULL;+ALTER TABLE "comment_thread_targets" ADD COLUMN "workspaceId" TEXT;-- AddForeignKeyALTER TABLE "comment_thread_targets" ADD CONSTRAINT "comment_thread_targets_workspaceId_fkey" FOREIGN KEY ("workspaceId") REFERENCES "workspaces"("id") ON DELETE RESTRICT ON UPDATE CASCADE;diff --git a/server/src/database/schema.prisma b/server/src/database/schema.prismaindex 3fc31d1c28f..c4b922939e2 100644--- a/server/src/database/schema.prisma+++ b/server/src/database/schema.prisma@@ -384,9 +384,9 @@ model CommentThreadTarget {commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade)commentThreadId String/// @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)- workspaceId String+ workspaceId String?commentableType CommentableTypecommentableId String