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

CRM-21508 Fix column Information for civicrm_mailing.created_date pas… #11361

Merged
merged 1 commit into from
Dec 4, 2017

Conversation

seamuslee001
Copy link
Contributor

@seamuslee001 seamuslee001 commented Dec 3, 2017

…sed to Docker When

Overview

When there was locking mechanisms attached to the civicrm_mailing table to prevent duplicate windows editing mailings. the created_date column was changed to default to NULL to satisfy older MySQL versions. This was not properly updated in the Docker When information array.

Before

Docker When Fails to convert tables

After

Tables convert correctly

Technical Details

As part of 4.7.27 We converted the created_date column to be DEFAULT NULL so we could have a modified_date column which was ON UPDATE CURRENT_TIMESTAMP see https://github.com/civicrm/civicrm-core/blob/master/CRM/Upgrade/Incremental/php/FourSeven.php#L449 and https://github.com/civicrm/civicrm-core/blob/master/CRM/Upgrade/Incremental/php/FourSeven.php#L1382 However in the Timestamps.php array the default of CURRENT_TIMESTAMP was still set which caused this issue civicrm/org.civicrm.doctorwhen#10

Comments

ping @totten @eileenmcnaughton @MegaphoneJon I believe this is the solution to the problem, I have put it against the RC as it was a bug in 4.7.27

@eileenmcnaughton
Copy link
Contributor

Docter When not Docker When?

@eileenmcnaughton
Copy link
Contributor

I checked and I agree that NULL rather than CURRENT_TIMESTAMP is the correct default for the created_date field. This change will only affect people converting those fields using Doctor When so the risk factor is low here and it does seem like the correct fix for a valid error - merging

@eileenmcnaughton eileenmcnaughton merged commit 61c5e7b into civicrm:4.7.28-rc Dec 4, 2017
@eileenmcnaughton eileenmcnaughton deleted the CRM-21508 branch December 4, 2017 00:49
sluc23 pushed a commit to ixiam/civicrm-core that referenced this pull request Jan 10, 2018
CRM-21508 Fix column Information for civicrm_mailing.created_date pas…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants