added migrations folder to git-project to sync resolved migrations

This commit is contained in:
PxlLoewe
2025-06-27 18:44:18 -07:00
parent e3988c24e3
commit 8071f4b764
57 changed files with 1012 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
/*
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;