-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Upgrading multilingual site causes DB Error #12636
Conversation
…re_5_4_alpha1.php
(Standard links)
|
* @return array | ||
* A table-indexed array of translatable columns. | ||
*/ | ||
public static function &columns() { |
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.
Just as a general pattern - we have been removing the & in lines like above for a while now. It's there in old code so I understand you copying it in - but we don't think it's a good thing
How does this work? Note that in 4.7.31 a new multilingual field was added - for multilingual upgraders running the api @seamuslee001 @mlutfy thoughts |
This would explain why we need to run It might have been better to name it |
@eileenmcnaughton oh didn't know about the API call.. couldn't find in the docs I just followed what's mentioned in the docs here and I guess this is the code where it choses which schema structure to load in CRM/Core/I18n/Schema.php |
@chamilwijesooriya wow - I had no idea that was there - did you @seamuslee001 @mlutfy |
@seamuslee001 I think this is mergeable .... |
Seems OK to me as well |
Seems sensible to me, I say we merge it |
If it's a regression, should it go in 5.5? |
@colemanw it's not a recent regression - it has affected the whole 5.x series as it was 4.7.31 |
GitLab Issue 311 - Upgrading multilingual site causes DB Error
Overview
Upgrading from CiviCRM 4.4.7 to 5.4.0 (Drupal), cause a DB error. Upgrade process works fine.
Before
When loading any civi page, JavaScript error is displayed on the language file (backtrace displayed after enabling).
Checking the error log, few fields relating to uf_group are not getting created during the upgrade.
Further investigation showed that in CRM/Core/I18n, there have been schema changes between the latest SchemaStructure.php and SchemaStructure_4_7_alpha1.php
After
Copied CRM/Core/I18n/SchemaStructure.php and renamed to SchemaStructure_5_4_alpha1.php