-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Type Aliases not working #896
Comments
I can confirm this bug. |
I cannot reproduce this with the following version:
|
Nevermind my comment. I forgot |
This is a regression of our new approach of diffing datamodels. The new diffing algorithm cannot handle type aliases as of now. |
This should be fixed by prisma/prisma-engines#183. The fix will be in |
I'll close the issue, but feel free to re-open if the problem persists. |
still happening to me with |
Oh :/ Does the custom type appear in the migration when you |
No, that's why I get this error I guess |
I can confirm this still occurs in |
I just double checked and your binary version ( |
@pantharshit00 Can you please double check if this occurs with the new |
Ok, I am not able to reproduce this now with preview-017. Also, a quick note that you will need to delete the migrations both from the database and locally. They contain the wrong steps. |
Related to this issue, in Preview 17 I have been having a weird issue with custom types. I'm using the same type alias as the issue creator (CUID as an abstraction of |
@nhuesmann I can confirm that bug. I opened a new issue about there here: prisma/migrate#225 |
@pantharshit00 great, thank you! |
Hello I see since one of the latest alpha I can't use my custom type.
PS: this error happen while
prisma2 lift up
The text was updated successfully, but these errors were encountered: