Uploaded image for project: 'VPMS Web Application'
  1. OVPMS-1753

1.7 to 1.8 migration script fails to migrate templates if a template has duplicate products

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 1.8
    • Fix versions: 1.9
    • Components: None
    • Labels:
      None
    • Sprint:

      Description

      If a product template includes the same product more than once, the migrate-1.7-to-1.8.sql script will display an error message like:

       ERROR 1062 <23000> at line 3120: Duplicate entry '2941-lowQuantity' for key 'PRIMARY' 
      

      and templates won't be migrated.
      The attached migration script handles duplicates correctly, but must be run on an unmigrated database.

        Attachments

          Activity

            People

            • Assignee:
              tanderson Tim Anderson
              Reporter:
              tanderson Tim Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5h
                5h

                  Who's Looking?