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

[PSL] Allow Default Values for scalar fields of type List #10773

Closed
do4gr opened this issue Dec 20, 2021 · 2 comments
Closed

[PSL] Allow Default Values for scalar fields of type List #10773

do4gr opened this issue Dec 20, 2021 · 2 comments

Comments

@do4gr
Copy link
Member

do4gr commented Dec 20, 2021

model User{
  id Int @id
  favoriteNumbers Int[] @default([2, 3, 5, 7])
}

This is currently rejected though it is possible on Postgres.

@janpio
Copy link
Member

janpio commented Jan 12, 2022

Note: Client team as this needs to be supported in QE for default creation as well.

@janpio
Copy link
Member

janpio commented May 9, 2022

Closing as duplicate of #8330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants