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

Support list defaults in Postgres #3234

Closed
matthewmueller opened this issue Aug 7, 2020 · 1 comment
Closed

Support list defaults in Postgres #3234

matthewmueller opened this issue Aug 7, 2020 · 1 comment

Comments

@matthewmueller
Copy link
Contributor

matthewmueller commented Aug 7, 2020

Given

create table model (
  id int primary key,
  col int []  default '{0,1}'
);

Expected

model model {
  id  Int   @id
  col Int[] @default([0, 1])
}

Actual

model model {
  id  Int   @id
  col Int[]
}

Additional context

Gaps Examples: https://prisma-gaps.netlify.app/#9 https://prisma-gaps.netlify.app/#18 https://prisma-gaps.netlify.app/#27 https://prisma-gaps.netlify.app/#30 https://prisma-gaps.netlify.app/#34

@matthewmueller matthewmueller added kind/improvement An improvement to existing feature and code. topic: schema topic: introspection team/product tech/engines Issue for tech Engines. labels Aug 7, 2020
@janpio janpio changed the title Prisma Gaps Introspection: Support list defaults in Postgres Support list defaults in Postgres Aug 10, 2020
@janpio janpio added kind/feature A request for a new feature. and removed kind/improvement An improvement to existing feature and code. labels Sep 10, 2020
@albertoperdomo albertoperdomo added the team/schema Issue for team Schema. label Nov 25, 2020
@do4gr do4gr removed their assignment Mar 22, 2021
@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

4 participants