added migrations folder to git-project to sync resolved migrations
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user