chore: Remove cascade on profile deletion for EventType (#21792)
This commit is contained in:
1 parent
860eae8dcb
commit
b39404860f
2 files changed
+6
-1
No files matched your search
+5
@@ -0,0 +1,5 @@
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "EventType" DROP CONSTRAINT "EventType_profileId_fkey";
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "EventType" ADD CONSTRAINT "EventType_profileId_fkey" FOREIGN KEY ("profileId") REFERENCES "Profile"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
@@ -102,7 +102,7 @@ model EventType {
|
||||
userId Int?
|
||||
|
||||
profileId Int?
|
||||
profile Profile? @relation(fields: [profileId], references: [id], onDelete: Cascade)
|
||||
profile Profile? @relation(fields: [profileId], references: [id])
|
||||
|
||||
team Team? @relation(fields: [teamId], references: [id], onDelete: Cascade)
|
||||
teamId Int?
|
||||
|
||||
Reference in new issue
Block a user