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-kit introspect doesn't pull correct defautl statement #2905

Closed
greg-truewind opened this issue Sep 4, 2024 · 3 comments
Closed
Assignees
Labels
bug Something isn't working drizzle/kit priority Will be worked on next

Comments

@greg-truewind
Copy link

greg-truewind commented Sep 4, 2024

What version of drizzle-orm are you using?

0.33.0

What version of drizzle-kit are you using?

0.24.2

Describe the Bug

During introspect tables that have default value set as timezone('utc'::text, now()) are getting pulled without wrapped sql operator like so default(timezone('utc'::text, now())).notNull(), which is invalid typescript code

Expected behavior

expected default(sql`timezone('utc'::text, now())\`).notNull(),

Environment & setup

No response

@greg-truewind greg-truewind added the bug Something isn't working label Sep 4, 2024
@seannetlife
Copy link

do you have a workaround for this @L-Mario564 ?

@L-Mario564
Copy link
Collaborator

do you have a workaround for this @L-Mario564 ?

Not at the moment, you have to manually fix it for now.

@L-Mario564 L-Mario564 self-assigned this Oct 24, 2024
@L-Mario564 L-Mario564 added drizzle/kit priority Will be worked on next labels Oct 24, 2024
@AndriiSherman
Copy link
Member

Was 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 drizzle/kit priority Will be worked on next
Projects
None yet
Development

No branches or pull requests

4 participants