Moodle
  1. Moodle
  2. MDL-21046

Outcomes fail to restore from earlier 1.9 versions

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.7
    • Fix Version/s: 1.9.8
    • Component/s: Backup, Other
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      31827

      Description

      Outcomes do not restore into 1.9.7 from previous versions. I tested a restore from a backup made in 1.9.4 and a backup in 1.9.5, both failed to restore outcomes.

      When new outcomes are made in 1.9.7, they do successfully restore to 1.9.7.

        Issue Links

          Activity

          Hide
          Michael Blake added a comment -

          This issue has been reported by a Moodle Partner (MR).

          Show
          Michael Blake added a comment - This issue has been reported by a Moodle Partner (MR).
          Hide
          Guilherme Victor Candeloro added a comment -

          Hello, Martin

          I went through this problem also after updating my moodle version, it does not restore the backup, I got around like this, there are a series of tables in the database, which are like "NOT NULL" and the older versions did not exist or the field, that is NULL are coming, so I had to put on the table to accept null, I know this may not be the best option, but knowing that we have a breakthrough, right? Through this we can work together to solve this major problem that is very important for Moodle.

          Show
          Guilherme Victor Candeloro added a comment - Hello, Martin I went through this problem also after updating my moodle version, it does not restore the backup, I got around like this, there are a series of tables in the database, which are like "NOT NULL" and the older versions did not exist or the field, that is NULL are coming, so I had to put on the table to accept null, I know this may not be the best option, but knowing that we have a breakthrough, right? Through this we can work together to solve this major problem that is very important for Moodle.
          Hide
          Martin Dougiamas added a comment -

          Eloy, could you please look into this? Hopefully it's something simple!

          Show
          Martin Dougiamas added a comment - Eloy, could you please look into this? Hopefully it's something simple!
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Hi Allisun, can you provide some example backup file having outcomes and not being restored? In the mean time I'll try to reproduce it here, but any real example will be welcome. Feel free to send it me privately to stronk7 A T moodle D O T org.

          Guilherme can you specify a bit more which fields have you changed manually? And the exact moodle version? Does that happen in mysql, postgresql....? And the complete error you're getting? We need all the information available in order to be able to reproduce and detect the problem... TIA!

          Ciao

          Show
          Eloy Lafuente (stronk7) added a comment - Hi Allisun, can you provide some example backup file having outcomes and not being restored? In the mean time I'll try to reproduce it here, but any real example will be welcome. Feel free to send it me privately to stronk7 A T moodle D O T org. Guilherme can you specify a bit more which fields have you changed manually? And the exact moodle version? Does that happen in mysql, postgresql....? And the complete error you're getting? We need all the information available in order to be able to reproduce and detect the problem... TIA! Ciao
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Should be fixed now. Backups containing no user info are able to be restored with outcomes / grade categories and other pieces of info. Resolving as fixed. Feel free to reopen if necessary.

          Guilherme, if you can provide more info, plz open another bug in the Tracker and tell me more... TIA and ciao

          Show
          Eloy Lafuente (stronk7) added a comment - Should be fixed now. Backups containing no user info are able to be restored with outcomes / grade categories and other pieces of info. Resolving as fixed. Feel free to reopen if necessary. Guilherme, if you can provide more info, plz open another bug in the Tracker and tell me more... TIA and ciao

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: