fix: add onDelete set null to reviewedBy FK
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE "community_suggestions" DROP CONSTRAINT "community_suggestions_reviewed_by_user_id_fk";
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "community_suggestions" ADD CONSTRAINT "community_suggestions_reviewed_by_user_id_fk" FOREIGN KEY ("reviewed_by") REFERENCES "public"."user"("id") ON DELETE set null ON UPDATE no action;
|
||||
Reference in New Issue
Block a user