Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19968

Disable multiple languages fixes

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Disabling multiple languages is almost certain to fail on an existing reasonably well populated system due to row size constraints. This patch makes a couple of simple tweaks to the SQL queries so that it is much more likely to succeed!

      1. Column is renamed instead of created and copied, as the copy often leads to a row size constraint (eg. in civicrm_event when you have some text in intro_text_lang).
      2. Use DROP VIEW IF EXISTS instead of DROP VIEW (supported in mysql 5.1+). There is more support for IF EXISTS on other SQL functions in new versions of mysql but we can't use them if we're maintaining compatibility.

      PR: https://github.com/civicrm/civicrm-core/pull/9783

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mattwire Matthew Wire
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: