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

Enabling logging causes DB syntax error on tables with no keys or constraints

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.6.11
    • Fix Version/s: 4.6.15
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Discovered while testing with a site that has CiviCase enabled - this broke creation of the log_civicrm_view_case_activity_recent table.

      CRM_Logging_Schema->createLogTableFor adds the logging column on the assumption constraints have been removed from the table defintion, leaving a trailing comma.

      Need to ensure a comma is added or SQL Syntax errors may ensue.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              agileware Agileware
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: