Closed srkuleo closed 2 weeks ago
Duplicating from #3335:
This is because the third parameter of
pgTable
should return an array now. Returning an object is deprecated as of 0.36.0.Source: https://github.com/drizzle-team/drizzle-orm/releases/tag/0.36.0
Duplicating from #3335:
This is because the third parameter of
pgTable
should return an array now. Returning an object is deprecated as of 0.36.0.Source: https://github.com/drizzle-team/drizzle-orm/releases/tag/0.36.0
Lol how did I miss this?? Thanks man that probably solves the issue, I will close it after checking.
Btw why did they not address this in Index and Constraints section? I haven’t seen the declaration changes there.
The Drizzle team just had two pretty big releases, so the docs are a bit behind. I highly recommend reading the recent release notes to get up to date.
There's already a bunch of issues made for updating the docs, so we can expect the docs updated soon!
The Drizzle team just had two pretty big releases, so the docs are a bit behind. I highly recommend reading the recent release notes to get up to date.
There's already a bunch of issues made for updating the docs, so we can expect the docs updated soon!
Yeah I figured, literally read the patch notes 2 days ago not sure how I missed it :/
I'm getting this error in a schema that was generated after running drizzle-kit introspect
. So it looks like drizzle-kit still needs to be updated to use the new format?
I'm getting this error in a schema that was generated after running
drizzle-kit introspect
. So it looks like drizzle-kit still needs to be updated to use the new format?
I'm not really sure—might be a good opportunity for a new issue and/or PR!
I'm getting this error in a schema that was generated after running
drizzle-kit introspect
. So it looks like drizzle-kit still needs to be updated to use the new format?I'm not really sure—might be a good opportunity for a new issue and/or PR!
Same here, I am also getting the error in a schema that was generated after running drizzle-kit pull. Looks like drizzle-kit do need a update.
What version of
drizzle-orm
are you using?0.36.0
What version of
drizzle-kit
are you using?0.27.0
Describe the Bug
Hello, after updating to v0.36.0, I've started seeing this error message
My schema looks like this,
I can't seem to find anything in the docs regarding depractication and from the examples it looks like I am using the current recommended way of declaring columns inside a table.
Does anyone know how to fix this?
Expected behavior
No response
Environment & setup
No response