Correct schema drift during 1.0 -> 1.8 upgrades
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned | ||
1.8 |
Fix Released
|
Medium
|
Unassigned | ||
1.9 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
We seem to get a lot of bug reports on the forum from people having issues after upgrading from pre-1.5 Mahara instances up to the latest. It seems that the upgrade scripts do not generate a database schema which is consistent with what you'd get from a clean 1.7 installation.
If we want people to update to the latest version of Mahara (and we do!) then we need to make sure that the upgrade process works properly. So, we should test the upgrade process from each of the old versions of Mahara into master, and if it doesn't produce exactly the same DB schema as a fresh install, we need to correct the master upgrade scripts to solve this.
Of course, there's also the matter of data in those tables getting messed up, but that's harder to recognize and fix. We could test for it partway, by making sure we upgrade a non-empty Mahara instance (something with at least a few users, pages, institutions, auth methods, etc).
It might also be a good idea to add a tool that compares the schema against all of the install.xml files, so that users can tell whether they have a problem or not. Not worth writing one from scratch, but Moodle 2 has a script for copying a database, and one of its steps is to check the schema against all the XMLDB files, so we may be able to use that.
summary: |
- Correct schema drift during 1.0 -> 1.7 upgrades + Correct schema drift during 1.0 -> 1.8 upgrades |
Changed in mahara: | |
milestone: | 1.8rc1 → 1.8.0 |
summary: |
- Correct schema drift during 1.0 -> 1.8 upgrades + Correct schema drift during 1.1 -> 1.9 upgrades |
summary: |
- Correct schema drift during 1.1 -> 1.9 upgrades + Correct schema drift during 1.1 -> 1.8 upgrades |
summary: |
- Correct schema drift during 1.1 -> 1.8 upgrades + Correct schema drift during 1.0 -> 1.8 upgrades |
Changed in mahara: | |
milestone: | 1.8.0 → 1.8.1 |
Changed in mahara: | |
milestone: | 1.8.1 → 1.8.2 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
See https:/ /reviews. mahara. org/#/c/ 2744/