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

dev/core#2452 - Make upgrade to 5.36 more robust when creating foreign key #19773

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Mar 10, 2021

Overview

https://lab.civicrm.org/dev/core/-/issues/2452

Upgrade to 5.36 can't be run twice because foreign key already exists.

Before

crash

After

good

Technical Details

I looked for the equivalent of addColumn() but there's just safeRemoveFK() and checkFKExists(), so I used checkFKExists.

Comments

@civibot
Copy link

civibot bot commented Mar 10, 2021

(Standard links)

@civibot civibot bot added the 5.36 label Mar 10, 2021
@seamuslee001
Copy link
Contributor

Looks good to me MOP

@eileenmcnaughton eileenmcnaughton merged commit 57d6e6b into civicrm:5.36 Mar 10, 2021
@demeritcowboy
Copy link
Contributor Author

Thanks!

@demeritcowboy demeritcowboy deleted the safe-foreignkey branch March 10, 2021 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants