mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
chore(prisma): migrate schema to add displayId field in Problem model
This commit is contained in:
parent
89ebfc0c3a
commit
eafd5c4ca4
@ -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");
|
Loading…
Reference in New Issue
Block a user