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#131 Stop Monmouthshire from breaking upgrades #12538

Merged
merged 1 commit into from
Jul 24, 2018

Conversation

JKingsnorth
Copy link
Contributor

Overview

Monmouthshire might already exist in the DB. So the 'INSERT' statement fails and breaks the upgrade.

Before

If Monmouthshire already exists, the upgrade fails fatally.

After

If Monmouthshire already exists, the upgrade continues gracefully.

Technical Details

Use INSERT IGNORE instead - this convention is used elsewhere with states/provinces being added to the DB.

@civibot
Copy link

civibot bot commented Jul 23, 2018

(Standard links)

@seamuslee001 seamuslee001 changed the base branch from master to 5.4 July 23, 2018 20:43
@seamuslee001
Copy link
Contributor

I have used the mergers rights to rebase this PR @JKingsnorth against 5.4 as it makes sense to go against the RC

@seamuslee001
Copy link
Contributor

Merging as per the tag

@seamuslee001 seamuslee001 merged commit 5df149c into civicrm:5.4 Jul 24, 2018
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.

4 participants