Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoBackendAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Backend
DojoBackendAPI
Commits
99d2afdf
Commit
99d2afdf
authored
1 year ago
by
joel.vonderwe
Committed by
michael.minelli
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
Add language to assignment in db
parent
7be4ac29
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ExpressAPI/prisma/migrations/20240311145203_add_language_to_assignment/migration.sql
+2
-0
2 additions, 0 deletions
...s/20240311145203_add_language_to_assignment/migration.sql
ExpressAPI/prisma/schema.prisma
+69
-0
69 additions, 0 deletions
ExpressAPI/prisma/schema.prisma
with
71 additions
and
0 deletions
ExpressAPI/prisma/migrations/20240311145203_add_language_to_assignment/migration.sql
0 → 100644
+
2
−
0
View file @
99d2afdf
-- AlterTable
ALTER
TABLE
`Assignment`
ADD
COLUMN
`language`
ENUM
(
'abap'
,
'ada'
,
'asm'
,
'bash'
,
'bqn'
,
'c'
,
'caml'
,
'cloudformation'
,
'csharp'
,
'css'
,
'cuda'
,
'dart'
,
'delphi'
,
'docker'
,
'erlang'
,
'f'
,
'fsharp'
,
'flex'
,
'fortran'
,
'futhark'
,
'go'
,
'groovy'
,
'haskell'
,
'hepial'
,
'json'
,
'jsp'
,
'java'
,
'js'
,
'julia'
,
'kotlin'
,
'kubernetes'
,
'latex'
,
'lisp'
,
'lua'
,
'matlab'
,
'objc'
,
'ocaml'
,
'pascal'
,
'pearl'
,
'perl'
,
'php'
,
'postscript'
,
'powershell'
,
'prolog'
,
'promela'
,
'python'
,
'r'
,
'ruby'
,
'rust'
,
'scala'
,
'sql'
,
'smalltalk'
,
'swift'
,
'terraform'
,
'text'
,
'ts'
,
'tsql'
,
'typst'
,
'vba'
,
'vbnet'
,
'web'
,
'xml'
,
'yaml'
,
'other'
)
NOT
NULL
DEFAULT
'other'
;
This diff is collapsed.
Click to expand it.
ExpressAPI/prisma/schema.prisma
+
69
−
0
View file @
99d2afdf
...
...
@@ -43,6 +43,7 @@ model Assignment {
gitlabLastInfoDate DateTime
published Boolean @default(false)
useSonar Boolean @default(false)
language Language @default(other)
exercises Exercise[]
staff User[]
...
...
@@ -100,3 +101,71 @@ model TagProposal {
state String @default("PendingApproval")
details String?
}
enum Language {
abap
ada
asm
bash
bqn
c
caml
cloudformation
csharp
css
cuda
dart
delphi
docker
erlang
f
fsharp
flex
fortran
futhark
go
groovy
haskell
hepial
json
jsp
java
js
julia
kotlin
kubernetes
latex
lisp
lua
matlab
objc
ocaml
pascal
pearl
perl
php
postscript
powershell
prolog
promela
python
r
ruby
rust
scala
sql
smalltalk
swift
terraform
text
ts
tsql
typst
vba
vbnet
web
xml
yaml
other
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment