#How to enable linting of schema files in VS Code?
1 messages · Page 1 of 1 (latest)
Sorry, could you link me the docs that say that an index should be added for an FK?
Right, sorry. What I meant was that I think our docs are wrong and wanted to know where in the docs you saw that.
does this plugin still work?
i checked the migrations and prisma doesn't generate the necessary indexes
Are you using the prisma relation mode and PlanetScale?
I'm using the default relation mode (which is not prisma AFAIK). I'm using a regular Postgresql instance on my local computer
@inner compass
Yeah, those docs are only for the prisma relation mode
so I can only get a warning if I'm not using my own database's contstraint mechanisms?
yup, that's the case. We understand it's a bit silly and are looking to expand these kinds of warnings/suggestions
so I can just set it to prisma, add the indexes, and set it back to the default? 😅
I think so? 🙃