-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(psl): GA "fullTextIndex" for every supported provider: mysql, mo…
…ngodb
- Loading branch information
Showing
20 changed files
with
78 additions
and
95 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
prisma-fmt/tests/text_document_completion/scenarios/extended_indexes_basic/schema.prisma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
generator js { | ||
provider = "prisma-client-js" | ||
previewFeatures = ["fullTextIndex"] | ||
} | ||
|
||
datasource db { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
psl/psl/tests/validation/preview_features/full_text_index/mongodb.prisma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
previewFeatures = ["fullTextIndex"] | ||
} | ||
|
||
datasource db { | ||
provider = "mongodb" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
model Blog { | ||
id String @id @map("_id") | ||
content String | ||
title String | ||
@@fulltext([content, title]) | ||
} | ||
// [1;93mwarning[0m: [1mPreview feature "fullTextIndex" is deprecated. The functionality can be used without specifying it as a preview feature.[0m | ||
// [1;94m-->[0m [4mschema.prisma:3[0m | ||
// [1;94m | [0m | ||
// [1;94m 2 | [0m provider = "prisma-client-js" | ||
// [1;94m 3 | [0m previewFeatures = [1;93m["fullTextIndex"][0m | ||
// [1;94m | [0m |
22 changes: 22 additions & 0 deletions
22
psl/psl/tests/validation/preview_features/full_text_index/mysql.prisma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
previewFeatures = ["fullTextIndex"] | ||
} | ||
|
||
datasource db { | ||
provider = "mysql" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
model Blog { | ||
id Int @unique | ||
content String | ||
title String | ||
@@fulltext([content, title]) | ||
} | ||
// [1;93mwarning[0m: [1mPreview feature "fullTextIndex" is deprecated. The functionality can be used without specifying it as a preview feature.[0m | ||
// [1;94m-->[0m [4mschema.prisma:3[0m | ||
// [1;94m | [0m | ||
// [1;94m 2 | [0m provider = "prisma-client-js" | ||
// [1;94m 3 | [0m previewFeatures = [1;93m["fullTextIndex"][0m | ||
// [1;94m | [0m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.