-
Notifications
You must be signed in to change notification settings - Fork 39
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
Renaming relation field column does not create @map("original") #1609
Comments
@janpio Could you point me to the part of Rust that handles the introspection? I would love to see it for myself. I would love to help DX better for introspection. I lost the path on |
Can confirm this isn't adding the This is getting filtered out specifically because we have the following guard in place We would need to update our rename functionality to then also rename the related relation if we rename a relation field as that does not happen right now if we remove the guard :) We do already have the functionality for renaming a whole block, so we can re-use that Screen.Recording.2024-04-24.at.12.46.26.mov |
|
While at renaming of enums. Did you try to rename the enum itself? It will simply print out Other than that I think enums are probably fixed 😊 |
Bug description
When renaming a column whose type is an enum, it will rename it, but will not add
@map("originalName")
How to reproduce
zMena
Expected behavior
It should rename and map to original to prevent errors
Prisma information
Starting schema:
After F2 renaming (error)
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: