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 0000000000000000000000000000000000000000..caaf154748b78b2e154068930cf59a48e05ecb42 --- /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 ed1cd3624c308b3c702d8b7202e8329b087622de..8717f8fab3a0aed5b5ceae8ac29e62158ad58499 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[]