-- DropForeignKey ALTER TABLE "Participant" DROP CONSTRAINT "Participant_eventAppointmentId_fkey"; -- AlterTable ALTER TABLE "Participant" ALTER COLUMN "eventAppointmentId" DROP NOT NULL; -- AddForeignKey ALTER TABLE "Participant" ADD CONSTRAINT "Participant_eventAppointmentId_fkey" FOREIGN KEY ("eventAppointmentId") REFERENCES "EventAppointment"("id") ON DELETE SET NULL ON UPDATE CASCADE;