-- DropForeignKey
ALTER TABLE "progress_report_updates" DROP CONSTRAINT "progress_report_updates_issue_id_fkey";

-- DropForeignKey
ALTER TABLE "progress_report_updates" DROP CONSTRAINT "progress_report_updates_issue_resolve_id_fkey";

-- RenameForeignKey
ALTER TABLE "progress_report_update_plenary_decisions" RENAME CONSTRAINT "progress_report_update_plenary_decisions_progress_report_id_fke" TO "progress_report_update_plenary_decisions_progress_report_i_fkey";

-- AddForeignKey
ALTER TABLE "progress_report_updates" ADD CONSTRAINT "progress_report_updates_issue_id_fkey" FOREIGN KEY ("issue_id") REFERENCES "issues"("id") ON DELETE SET NULL ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "progress_report_updates" ADD CONSTRAINT "progress_report_updates_issue_resolve_id_fkey" FOREIGN KEY ("issue_resolve_id") REFERENCES "issue_resolves"("id") ON DELETE SET NULL ON UPDATE CASCADE;

-- RenameIndex
ALTER INDEX "progress_report_update_plenary_decisions_report_ministry_decisi" RENAME TO "progress_report_update_plenary_decisions_progress_report_id_key";
