-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix migrations preup with table prefix and migration performance #11371
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 migrations preup with table prefix and migration performance #11371
Conversation
…check if index is present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Rohit! 👍
Thanks @rohitp19 - would you be able to rebase this on the 4.4 branch so we could get it into the next bug fix release? |
Presumably to test this we need an old (maybe Mautic 3?) version of Mautic with a database prefix in use to test the migrations are working correctly, is that a good understanding of the testing required? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good.
I've run all migrations. Does not see issue
We can go 👍
The base branch was changed.
I checked how hard it would be to rebase this on 4.4 which is the bug fix branch and there were conflicts in 86 files. Gonna merge it in 4.x and it will take longer to get to production. @rohitpavaskar please use the right branch in the future so it can be released sooner. |
There will be no more feature releases for M4. I'll merge this into M5 (the 5.x branch) |
…tic#11371) * Fixed migration prefix index issue * Fix Version20191219155630 migration to 100% cover perUp condition * Fix Version20191017140848 migration to 100% cover perUp condition * Fix Version20200227110431 migration to 100% cover preUp condition to check if index is present * Fix Version20200805185714 migration to 100% cover preUp condition * Fixed isse with prefix and innodb_strict_mode * Fixed CSFixer Co-authored-by: Rohit Pavaskar <rohit.pavaskar@acquia.com> Co-authored-by: John Linhart <admin@escope.cz>
Description:
This PR fixes issue with correct preUp migration conditions with and without prefix.
Also optimise query generation
Steps to test this PR: