You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue can be reproduced with this commit easily. The problem is that when using the migrator for some reason it doesn't properly execute CREATE UNIQUE INDEX queries. I my case providerId is turned into providerid. I debugged the code and I can't find where it goes wrong, I was able to follow the raw query data into the pg driver and it was still providerId. I can also reproduce this problem with postgres.js so it seems that this is a Drizzle issue. If I take this SQL query and run it against my database without Drizzle it works perfectly. Related Discord discussion is here.
Expected behavior
I expect the migrator to be able to properly execute my query.
Environment & setup
WSL / VS Code
The text was updated successfully, but these errors were encountered:
What version of
drizzle-orm
are you using?0.31.0
What version of
drizzle-kit
are you using?0.22.1
Describe the Bug
The issue can be reproduced with this commit easily. The problem is that when using the
migrator
for some reason it doesn't properly executeCREATE UNIQUE INDEX
queries. I my caseproviderId
is turned intoproviderid
. I debugged the code and I can't find where it goes wrong, I was able to follow the raw query data into thepg
driver and it was stillproviderId
. I can also reproduce this problem withpostgres.js
so it seems that this is a Drizzle issue. If I take this SQL query and run it against my database without Drizzle it works perfectly. Related Discord discussion is here.Expected behavior
I expect the migrator to be able to properly execute my query.
Environment & setup
WSL / VS Code
The text was updated successfully, but these errors were encountered: