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]:invalid sql generation with migrations #1821

Closed
Neeraj319 opened this issue Jan 22, 2024 · 1 comment
Closed

[BUG]:invalid sql generation with migrations #1821

Neeraj319 opened this issue Jan 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Neeraj319
Copy link

Neeraj319 commented Jan 22, 2024

What version of drizzle-orm are you using?

0.28.6

What version of drizzle-kit are you using?

0.19.13

Describe the Bug

With the text function with array as it type with default value as [""]
text("vision_api_attributes").array().default([""])

this generates the following invliad sql.

"vision_api_attributes" text[] DEFAULT ,

Expected behavior

Expected sql generated should be
"vision_api_attributes" text[] DEFAULT ARRAY[]::text[],

Environment & setup

Also i am using postgres.

@Neeraj319 Neeraj319 added the bug Something isn't working label Jan 22, 2024
@Angelelz
Copy link
Collaborator

Closing as duplicate of #1003
Please refer to #1344 for a discussion on how to work around this.

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

2 participants