-
-
Notifications
You must be signed in to change notification settings - Fork 462
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]: Creating index with using does not yield any result #817
Comments
I run into this limit as well. Would be great if we can add any kind of index. |
drizzle-kit currently can't read any options for indexes from drizzle-orm. But it's planned to be added in next drizzle-kit releases |
@AndriiSherman I have a suggestion for cases like this, I guess that if we could somehow provide a scape hatch on the schema definition to append a sql string directly, that plays well with drizzle-kit migrations, this could solve many issues, including this one. Another example that would be solved is for having
I think that this fit well with drizzle's idea to embrace SQL ("if you know sql you know drizzle") and provides flexibility to the user. Nothing more natural than allowing them to pass sql to a schema for generating the migrations. Makes sense? |
Just stumbled across this after a bit of research. By the looks of it advanced index creation is not working yet right? Any workarounds you guys might be able to share? Would be highly appreciated! |
What version of
drizzle-orm
are you using?0.27.0
What version of
drizzle-kit
are you using?0.19.1
Describe the Bug
I hope this helps! Let me know if you need any further assistance.
Expected behavior
The expected result should be the creation of an index as shown below:
Also, it would be necessary to somehow optionally specify the
jsonb_ops
orjsonb_path_ops
in the GIN index.Environment & setup
No response
The text was updated successfully, but these errors were encountered: