-- DropForeignKey
ALTER TABLE "progress_report_issue_comments" DROP CONSTRAINT "progress_report_issue_comments_progress_report_update_issu_fkey";

-- DropForeignKey
ALTER TABLE "progress_report_issue_comments" DROP CONSTRAINT "progress_report_issue_comments_update_decision_id_fkey";

-- AddForeignKey
ALTER TABLE "progress_report_issue_comments" ADD CONSTRAINT "progress_report_issue_comments_progress_report_update_issu_fkey" FOREIGN KEY ("progress_report_update_issue_id") REFERENCES "progress_report_update_issues"("id") ON DELETE SET NULL ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "progress_report_issue_comments" ADD CONSTRAINT "progress_report_issue_comments_progress_report_update_plen_fkey" FOREIGN KEY ("progress_report_update_plenary_decision_id") REFERENCES "progress_report_update_plenary_decisions"("id") ON DELETE SET NULL ON UPDATE CASCADE;

-- RenameIndex
ALTER INDEX "progress_report_issue_comments_update_decision_id_idx" RENAME TO "progress_report_issue_comments_progress_report_update_plena_idx";
