Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-28028

It is possible for old garbage data in the database to break the upgrade to 2.1

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1
    • 2.1
    • Questions
    • MOODLE_21_STABLE
    • MOODLE_21_STABLE
    • Hide

      Create a 1.9 or 2.0 site. Create a quiz and some quiz attempts.

      Go into the database and delete some rows from quiz_attempts, without deleting the linked data in other tables.

      Upgrade to 2.1 and check it works.

      Show
      Create a 1.9 or 2.0 site. Create a quiz and some quiz attempts. Go into the database and delete some rows from quiz_attempts, without deleting the linked data in other tables. Upgrade to 2.1 and check it works.

    Description

      See the comments in MDL-27929.

      Old data in the database, that should have been deleted long ago, is breaking the upgrade.

      We need to add a step that cleans up the garbage before the main upgrade runs.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Glenn Ansley Glenn Ansley
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1/Jul/11