From eafd5c4ca447a6ca1507bcf3835761b9dff94ef5 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sun, 30 Mar 2025 18:43:00 +0800 Subject: [PATCH] chore(prisma): migrate schema to add displayId field in Problem model --- .../migration.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 prisma/migrations/20250330104040_add_problem_display_id/migration.sql diff --git a/prisma/migrations/20250330104040_add_problem_display_id/migration.sql b/prisma/migrations/20250330104040_add_problem_display_id/migration.sql new file mode 100644 index 0000000..a734a3b --- /dev/null +++ b/prisma/migrations/20250330104040_add_problem_display_id/migration.sql @@ -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");