From 49a331899310eb7fa9e885015e7f2f463f44193e Mon Sep 17 00:00:00 2001 From: Joel von der Weid <joel.von-der-weid@hesge.ch> Date: Tue, 5 Mar 2024 13:36:45 +0100 Subject: [PATCH] Add useSonar to assignment table --- .../20240305123047_add_sonar_to_assignment/migration.sql | 2 ++ ExpressAPI/prisma/schema.prisma | 1 + 2 files changed, 3 insertions(+) create mode 100644 ExpressAPI/prisma/migrations/20240305123047_add_sonar_to_assignment/migration.sql diff --git a/ExpressAPI/prisma/migrations/20240305123047_add_sonar_to_assignment/migration.sql b/ExpressAPI/prisma/migrations/20240305123047_add_sonar_to_assignment/migration.sql new file mode 100644 index 0000000..caaf154 --- /dev/null +++ b/ExpressAPI/prisma/migrations/20240305123047_add_sonar_to_assignment/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE `Assignment` ADD COLUMN `useSonar` BOOLEAN NOT NULL DEFAULT false; diff --git a/ExpressAPI/prisma/schema.prisma b/ExpressAPI/prisma/schema.prisma index ed1cd36..8717f8f 100644 --- a/ExpressAPI/prisma/schema.prisma +++ b/ExpressAPI/prisma/schema.prisma @@ -42,6 +42,7 @@ model Assignment { gitlabLastInfo Json @db.Json gitlabLastInfoDate DateTime published Boolean @default(false) + useSonar Boolean @default(false) exercises Exercise[] staff User[] -- GitLab