Skip to content

Commit 25e0a56

Browse files
committed
Going to Prisma v5 which came out like 20 hours ago..
1 parent 94cd3c0 commit 25e0a56

File tree

5 files changed

+55
-47
lines changed

5 files changed

+55
-47
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY ./prisma/schema.prisma ./
1010
COPY package*.json ./
1111

1212
# Install app dependencies
13-
RUN npm install
13+
RUN npm ci
1414

1515
COPY tsconfig*.json ./
1616
COPY src ./src

package-lock.json

Lines changed: 43 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"test:e2e": "jest --projects test",
2323
"test:acceptance": "jest --projects test_acceptance"
2424
},
25+
"engines": {
26+
"node": ">=16.13.0"
27+
},
2528
"dependencies": {
2629
"@nestjs/common": "^8.4.1",
2730
"@nestjs/config": "^1.2.0",
@@ -34,7 +37,7 @@
3437
"@nestjs/swagger": "^5.2.0",
3538
"@nestjs/terminus": "^8.0.8",
3639
"@nestjs/websockets": "^8.4.1",
37-
"@prisma/client": "4.0.0",
40+
"@prisma/client": "^5.0.0",
3841
"ajv": "^8.10.0",
3942
"bcryptjs": "^2.4.3",
4043
"cache-manager": "^3.6.0",
@@ -81,13 +84,13 @@
8184
"eslint-plugin-import": "^2.25.4",
8285
"jest": "^27.5.1",
8386
"prettier": "^2.6.0",
84-
"prisma": "4.0.0",
87+
"prisma": "^5.0.0",
8588
"supertest": "^6.2.2",
8689
"ts-jest": "^27.1.3",
8790
"ts-loader": "^9.2.8",
8891
"ts-node": "^10.7.0",
8992
"tsconfig-paths": "^3.14.0",
90-
"typescript": "^4.6.2"
93+
"typescript": "^4.9.2"
9194
},
9295
"prisma": {
9396
"seed": "ts-node prisma/seed.ts"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Please do not edit this file manually
2+
# It should be added in your version-control system (i.e. Git)
3+
provider = "postgresql"

prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ model TestRun {
6868
baselineBranchName String?
6969
ignoreAreas String @default("[]")
7070
tempIgnoreAreas String @default("[]")
71+
baseline Baseline?
7172
build Build @relation(fields: [buildId], references: [id])
7273
project Project? @relation(fields: [projectId], references: [id])
7374
testVariation TestVariation? @relation(fields: [testVariationId], references: [id])
74-
baseline Baseline?
7575
}
7676

7777
model TestVariation {
@@ -89,9 +89,9 @@ model TestVariation {
8989
comment String?
9090
updatedAt DateTime @updatedAt
9191
createdAt DateTime @default(now())
92-
project Project @relation(fields: [projectId], references: [id])
9392
baselines Baseline[]
9493
testRuns TestRun[]
94+
project Project @relation(fields: [projectId], references: [id])
9595
9696
@@unique([projectId, name, browser, device, os, viewport, customTags, branchName])
9797
}

0 commit comments

Comments
 (0)