/* Warnings: - You are about to drop the column `penaltyId` on the `Report` table. All the data in the column will be lost. */ -- DropForeignKey ALTER TABLE "Report" DROP CONSTRAINT "Report_penaltyId_fkey"; -- AlterTable ALTER TABLE "Penalty" ADD COLUMN "reportId" INTEGER; -- AlterTable ALTER TABLE "Report" DROP COLUMN "penaltyId"; -- AddForeignKey ALTER TABLE "Penalty" ADD CONSTRAINT "Penalty_reportId_fkey" FOREIGN KEY ("reportId") REFERENCES "Report"("id") ON DELETE SET NULL ON UPDATE CASCADE;