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 f60367392fbfdcdf104a78dea1e20a0101bdddb9..df7bad204e465b97d1a329e1e46b2096406d3df5 100644
--- a/ExpressAPI/prisma/schema.prisma
+++ b/ExpressAPI/prisma/schema.prisma
@@ -34,6 +34,7 @@ model Assignment {
     gitlabLastInfo     Json     @db.Json
     gitlabLastInfoDate DateTime
     published          Boolean  @default(false)
+    useSonar           Boolean  @default(false)
 
     exercises Exercise[]
     staff     User[]