Skip to content

Commit 9288755

Browse files
authored
enable JSON fields for SQLite,
it's supported by prisma: https://www.prisma.io/docs/orm/reference/prisma-schema-reference#json
1 parent 2f69aa8 commit 9288755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/schema/src/plugins/prisma/schema-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import {
8282
const MODEL_PASSTHROUGH_ATTR = '@@prisma.passthrough';
8383
const FIELD_PASSTHROUGH_ATTR = '@prisma.passthrough';
8484
const PROVIDERS_SUPPORTING_NAMED_CONSTRAINTS = ['postgresql', 'mysql', 'cockroachdb'];
85-
const PROVIDERS_SUPPORTING_TYPEDEF_FIELDS = ['postgresql'];
85+
const PROVIDERS_SUPPORTING_TYPEDEF_FIELDS = ['postgresql', 'sqlite'];
8686

8787
// Some database providers like postgres and mysql have default limit to the length of identifiers
8888
// Here we use a conservative value that should work for most cases, and truncate names if needed

0 commit comments

Comments
 (0)