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

Open
greg-truewind opened this issue Sep 4, 2024 · 0 comments
Open
Labels
bug Something isn't working

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

1 participant