chore(prisma): migrate schema to add displayId field in Problem model

This commit is contained in:
cfngc4594 2025-03-30 18:43:00 +08:00
parent 89ebfc0c3a
commit eafd5c4ca4

View File

@ -0,0 +1,12 @@
/*
Warnings:
- A unique constraint covering the columns `[displayId]` on the table `Problem` will be added. If there are existing duplicate values, this will fail.
- Added the required column `displayId` to the `Problem` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Problem" ADD COLUMN "displayId" INTEGER NOT NULL;
-- CreateIndex
CREATE UNIQUE INDEX "Problem_displayId_key" ON "Problem"("displayId");