Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions/Recommendations for schema validation / VS Code extension (referentialIntegrity = prisma, Indexes) #946

Closed
Tracked by #11441
janpio opened this issue Nov 17, 2021 · 1 comment

Comments

@janpio
Copy link
Member

janpio commented Nov 17, 2021

See prisma/prisma#10173

Solution in VSCode: Nice color squiggly lines (yellow maybe?) as "info" for a line (on @relation in the model) and then a quick fix to add the @index to the model.

@janpio janpio added kind/feature A request for a new feature. topic: validation team/schema Issue for team Schema. labels Nov 17, 2021
@janpio janpio added this to Things we could do in 🌐 Language Tools Issue Categorization Nov 19, 2021
@janpio janpio changed the title Suggestions/Recommendations for schema validation / VS Code extension Suggestions/Recommendations for schema validation / VS Code extension (referentialIntegrity = prisma, Indexes) Nov 24, 2021
@janpio janpio moved this from Things we could do to DX in 🌐 Language Tools Issue Categorization Nov 24, 2021
@janpio janpio moved this from DX to Quickfix / CodeAction in 🌐 Language Tools Issue Categorization Nov 24, 2021
@janpio janpio added this to the 4.7.0 milestone Nov 22, 2022
@janpio
Copy link
Member Author

janpio commented Nov 30, 2022

This happened in 4.7.0 and we now have nice warnings, squiggly lines and even a quick fix: https://www.prisma.io/docs/concepts/components/prisma-schema/relations/relation-mode#indexes

@janpio janpio closed this as completed Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants