diff --git a/ExpressAPI/prisma/migrations/20240521164109_add_correction_description/migration.sql b/ExpressAPI/prisma/migrations/20240521164109_add_correction_description/migration.sql new file mode 100644 index 0000000000000000000000000000000000000000..4589378e38d35f2a1b284028249242510f9d74d5 --- /dev/null +++ b/ExpressAPI/prisma/migrations/20240521164109_add_correction_description/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE `Exercise` ADD COLUMN `correctionDescription` VARCHAR(80) NULL; diff --git a/ExpressAPI/prisma/schema.prisma b/ExpressAPI/prisma/schema.prisma index f60367392fbfdcdf104a78dea1e20a0101bdddb9..8d7143ac874fd4324ce2d1c043f65c2f6e27ba68 100644 --- a/ExpressAPI/prisma/schema.prisma +++ b/ExpressAPI/prisma/schema.prisma @@ -50,7 +50,8 @@ model Exercise { gitlabLastInfo Json @db.Json gitlabLastInfoDate DateTime - correctionCommit Json? @db.Json + correctionCommit Json? @db.Json + correctionDescription String? @db.VarChar(80) assignment Assignment @relation(fields: [assignmentName], references: [name], onDelete: NoAction, onUpdate: Cascade)