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

Logging Broken for Financial Records Following Upgrade

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.4
    • Fix Version/s: 4.3.6
    • Component/s: CiviContribute
    • Labels:

      Description

      Following a clean upgrade DB Constraint violation issues were being reported on changes needing a new civicrm_financial_trxn record. The constraint was being thrown due to mandatory fields not having data set in the logging table.

      My suspicion is this was caused by the differ script not checking if existing columns are no longer mandatory when it checked for differences in the schema. Pre-Upgrade version of CiviCRM was 4.1.2 and the trxn_id was required. In 4.3.4 its no longer required but the logging table wasn't altered to reflect this.

      The Differ script should also be checking for Not Null constraints as part of its process in order to avoid such iussues.

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              parvez Parvez Saleh
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h