-- AlterTable ALTER TABLE "Attachment" ADD COLUMN "communityId" TEXT; -- AddForeignKey ALTER TABLE "Attachment" ADD CONSTRAINT "Attachment_communityId_fkey" FOREIGN KEY ("communityId") REFERENCES "Community"("id") ON DELETE SET NULL ON UPDATE CASCADE;