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

Fix MySQL db migration with default encoding/collation #19268

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

jedcunningham
Copy link
Member

This allows the migrations to complete for MySQL db's without proper encoding/collation defaults.

I almost feel that we should be blocking migrations from running if they aren't set properly? Thoughts?

Related: #18939

@uranusjr
Copy link
Member

I almost feel that we should be blocking migrations from running if they aren't set properly?

A check in upgradedb feels like a good idea to me.

@kaxil
Copy link
Member

kaxil commented Oct 28, 2021

A check in upgradedb feels like a good idea to me.

Yup, a separate PR though

@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Oct 28, 2021
@potiuk
Copy link
Member

potiuk commented Oct 28, 2021

Agree. Checking it (incliding providing instructions on how to fix it) before migration is a very good idea (and agree with @kaxil it should be separate PR).

@potiuk
Copy link
Member

potiuk commented Oct 28, 2021

Jeez. I hate MySQL.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

Good to go but. Should be rebased - we have the "migration" check to make sure that rebase happens for any migration changes (just to make sure we do not get into "double migration HEADs" state).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full tests needed We need to run full set of tests for this PR to merge type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants