From 17c6be8a65c928dc7f769f8758fd6467e6a504a3 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Thu, 10 Apr 2025 21:55:32 +0800 Subject: [PATCH] feat(prisma): migrate timeLimit and memoryLimit to Problem model --- .../migration.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 prisma/migrations/20250410133520_move_limits_to_problem/migration.sql diff --git a/prisma/migrations/20250410133520_move_limits_to_problem/migration.sql b/prisma/migrations/20250410133520_move_limits_to_problem/migration.sql new file mode 100644 index 0000000..60c0db0 --- /dev/null +++ b/prisma/migrations/20250410133520_move_limits_to_problem/migration.sql @@ -0,0 +1,14 @@ +/* + Warnings: + + - You are about to drop the column `memoryLimit` on the `DockerConfig` table. All the data in the column will be lost. + - You are about to drop the column `timeLimit` on the `DockerConfig` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "DockerConfig" DROP COLUMN "memoryLimit", +DROP COLUMN "timeLimit"; + +-- AlterTable +ALTER TABLE "Problem" ADD COLUMN "memoryLimit" INTEGER NOT NULL DEFAULT 128, +ADD COLUMN "timeLimit" INTEGER NOT NULL DEFAULT 1000;