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

Remove support for type aliases #2942

Merged
merged 1 commit into from
Jun 8, 2022
Merged

Remove support for type aliases #2942

merged 1 commit into from
Jun 8, 2022

Conversation

pimeys
Copy link
Contributor

@pimeys pimeys commented May 30, 2022

Do not merge before Prisma 4 is due.

Closes prisma/prisma#9939

@pimeys pimeys requested a review from a team as a code owner May 30, 2022 13:38
@pimeys pimeys added this to the 4.x milestone May 30, 2022
Copy link
Contributor

@tomhoule tomhoule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aw yiss

 | 
 1 | type MyString = String @default("B")
 | 
"#]];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's validate the error message with product if in doubt

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not that much in doubt with this. Undocumented feature gets removed and we just give a hard validation error for now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on treating these as they never happened (in this one, special case of the old, undocumented type)

@pimeys pimeys force-pushed the prisma-4/remove-type-alias branch from 0c711a1 to 5e3b744 Compare May 30, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removal of undocumented support for type alias with Prisma 4.0.0
3 participants