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

Add unique index on civicrm_option_value for option_group_id + name

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0, 3.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The coding convention for retrieving option_value rows is to use the 'option_group_id' + 'name' columns as the unique key. We should have a constraint in the schema that enforces uniqueness for this combination.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: