Files
Chromacase/back/prisma/migrations/20230227022300_/migration.sql
2023-03-01 13:29:33 +09:00

15 lines
508 B
SQL

/*
Warnings:
- Added the required column `difficulties` to the `SongHistory` table without a default value. This is not possible if the table is not empty.
*/
-- DropForeignKey
ALTER TABLE "SongHistory" DROP CONSTRAINT "SongHistory_userID_fkey";
-- AlterTable
ALTER TABLE "SongHistory" ADD COLUMN "difficulties" JSONB NOT NULL;
-- AddForeignKey
ALTER TABLE "SongHistory" ADD CONSTRAINT "SongHistory_userID_fkey" FOREIGN KEY ("userID") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;