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

[FEATURE]: Simpler default array fields #2709

Closed
Ymirke opened this issue Jul 30, 2024 · 1 comment
Closed

[FEATURE]: Simpler default array fields #2709

Ymirke opened this issue Jul 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Ymirke
Copy link

Ymirke commented Jul 30, 2024

Describe what you want

Make arrays more simple to set empty as default.

Currently

field: dbEnum('enum_name')
  .array()
  .notNull()
  .default(sql`'{}'::enum_name[]`),

What I would want:

field: dbEnum('enum_name')
  .array()
  .notNull()
  .default([]),
@AndriiSherman
Copy link
Member

Should be fixed in drizzle-kit0.24.0
Please check release notes before updating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants