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

Fixed #35422 -- Fixed migrations crash when altering GeneratedField referencing rename field. #18122

Merged
merged 1 commit into from
May 3, 2024

Conversation

felixxm
Copy link
Member

@felixxm felixxm commented May 2, 2024

Thanks Sarah Boyce for the report and Simon Charette for the implementation idea.

ticket-35422

@charettes
Copy link
Member

Ok so MySQL doesn't support repointing field references in generated field expressions so we might need a feature flag for that?

@felixxm
Copy link
Member Author

felixxm commented May 2, 2024

Ok so MySQL doesn't support repointing field references in generated field expressions so we might need a feature flag for that?

Maybe it's enough to skip these tests on MySQL 🤔 MySQL raises a really clear error message: "Column 'pink' has a generated column dependency.", so I would leave it as it is.

@charettes
Copy link
Member

Sounds good to me!

@felixxm felixxm force-pushed the issue-35422 branch 2 times, most recently from 11afe92 to 89ee1db Compare May 2, 2024 19:56
Copy link
Contributor

@sarahboyce sarahboyce left a comment

Choose a reason for hiding this comment

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

Thank you this looks great!
I will rebase and merge shortly 👍

…eferencing rename field.

Thanks Sarah Boyce for the report and Simon Charette for the
implementation idea.
@sarahboyce sarahboyce merged commit 91a4b9a into django:main May 3, 2024
35 checks passed
@felixxm felixxm deleted the issue-35422 branch May 3, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants