-
-
Notifications
You must be signed in to change notification settings - Fork 688
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]: UUIDs broken in 0.23.2 #330
Comments
Downgrading to 0.22.0 works |
@michaelgmcd I "got around" this problem for now, without downgrading, by changing the column type to varchar in my schema. I could still have it generate UUID's by default, etc.
Not a fix, and I'm sure I'm losing some advantages of the uuid column in PG, but it at least allowed me to move forward without having to downgrade. |
@dubscode I tried your work around solution but that didn't work either. I get an error
|
@moosashah you might need to rebuild the table or run an alter table migration on the id column to change it to a varchar (if you previously migrated it as the uuid column). I was working in a new app, so there wasn't a significant risk of tearing down the old table and remigrating it. I hope that can help some. |
@dubscode @moosashah @michaelgmcd We will take a look at it with @dankochetov , hope will fix soon and hope you won't need to change your schema and loose data(even if it's development or testing phase) |
Didn't have a chance to look into this myself yet. Appreciate it. |
@dubscode thank you, you were right Had to drop the table (and all the migration files and create a new migration with drizzle-kit) and then the work around worked!! |
Hey @AndriiSherman, any update on this? Would love to upgrade to the latest, but this is a blocker. Happy to help if it's a reasonable enough fix. |
What version of
drizzle-orm
are you using?0.23.2
Describe the Bug
Hello, the following inserts break in >0.23.0 when using the RDS Data API and ids are UUIDs
The error returned is:
The text was updated successfully, but these errors were encountered: