Skip to content

Commit 1c1ebd3

Browse files
marschatthaclaude
andcommitted
feat(plugins): bump prisma to 7.8.0
prisma 7 no longer allows a url property in schema-file datasource blocks, while prisma 5/6 require it, so a separate basic_7 fixture covers 7.x and the original fixture keeps covering the 5.x snapshots. 7.8.0 is the newest release passing the 30-day stability gate (published 2026-04-22) with no known security advisories. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent dbf089a commit 1c1ebd3

3 files changed

Lines changed: 53 additions & 2 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`linter=prisma fixture=basic_7 version=7.8.0 1`] = `
4+
{
5+
"issues": [
6+
{
7+
"category": "CATEGORY_STYLE",
8+
"level": "LEVEL_FMT",
9+
"location": {
10+
"path": "basic_7.in.prisma",
11+
},
12+
"message": "Incorrect formatting, autoformat by running \`qlty fmt\`.",
13+
"mode": "MODE_BLOCK",
14+
"onAddedLine": true,
15+
"ruleKey": "fmt",
16+
"tool": "prisma",
17+
},
18+
],
19+
}
20+
`;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
datasource db {
2+
provider = "postgresql"
3+
}
4+
5+
generator client {
6+
provider = "prisma-client-js"
7+
}
8+
9+
model User {
10+
id Int @id @default(autoincrement())
11+
createdAt DateTime @default(now())
12+
email String @unique
13+
name String?
14+
role Role @default(USER)
15+
posts Post[]
16+
}
17+
18+
model Post {
19+
id Int @id @default(autoincrement())
20+
createdAt DateTime @default(now())
21+
updatedAt DateTime @updatedAt
22+
published Boolean @default(false)
23+
title String @db.VarChar(255)
24+
author User? @relation(fields: [authorId], references: [id])
25+
authorId Int?
26+
}
27+
28+
enum Role {
29+
USER
30+
ADMIN
31+
}

qlty-plugins/plugins/linters/prisma/plugin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ config_version = "0"
44
runtime = "node"
55
package = "prisma"
66
file_types = ["prisma"]
7-
latest_version = "7.0.0"
8-
known_good_version = "6.15.0"
7+
latest_version = "7.9.0"
8+
known_good_version = "7.8.0"
99
version_command = "prisma version"
1010
description = "Prisma schema formatter"
1111

0 commit comments

Comments
 (0)