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

[BUG]: Drizzle migrator doesn't work with uppercase names when creating indexes #2457

Closed
adam-arold opened this issue Jun 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@adam-arold
Copy link

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 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

@adam-arold adam-arold added the bug Something isn't working label Jun 5, 2024
@AndriiSherman
Copy link
Member

Should be fixed in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants