|
Yu and I have been searching through the entire Moodle codebase for an explanation, and so far we've been unlucky. But we found a function in group/db/dbsetup.php that creates all the tables. However we couldn't find any single call to this function anywhere.
Our first hypothetical conclusion is that the function has been written, but the creator forgot/neglected to put a call to it in group/db/upgrade.php for upgrading versions below a certain number (including 1.6.3). We are conducting some tests to investigate this hypothesis. This is a very serious blocker for anyone upgrading from 1.6.
I totally agree with Petr about moving groups back into core for 1.9 .... for now he's going to try making the groups upgrade happen before roles in admin/index.php in 1.8.1 ... hopefully this will not cause more regressions ... should be fixed in cvs, please report any trouble here or reopen.
thanks for the report!! I ran into the very same problem during an upgrade from 1.6.3 (2006050530) to 1.8.2+ (2007021520). In my case the table 'groups_courses_groups' was not created in the previous step of the upgrade because there were duplicate rows in table 'groups_members':
CREATE UNIQUE INDEX mdl_groumemb_grouse_uix ON mdl_groups_members (groupid, userid) I had to remove the duplicate entries and then run the upgrade again. (When looking – in Moodle – into the groups with duplicate rows (groupid, userid) in the 'groups_members' table, there seems to be nothing wrong with them. I have no idea where the duplicate rows have come from.) After the second upgrade – with no warnings – two tables are not present in the db: mdl_groups_members_temp and mdl_groups_temp (when compared to a clean installation of Moodle 1.8.2+ (2007021520)). Should I be worried? We have upgraded to Moodle 1.8.3 and are having the same issue, we have also had the issue outlined in:
http://tracker.moodle.org/browse/MDL-11879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel Groups are currently broken and we have noticed this days after upgrading (we upgrade while all the students and faculty are away). There has been mention of fixes but no details to any of it. We were on Moodle 1.6.5+ and we moved to 1.8.3, we did an intermediary upgrade to Moodle 1.7.3 to get there. The instance is rather large (10K+ users 500+ courses). Please let me know what needs to be done. Someone apparently named 'eloy' helped somone named 'jwatkins' fix this issue. Daniel, if I were you I would be worried. Hope someone responds soon! Kind Regards, R. Hi Rahim,
and... do you have one backup of your 1.6.5+ database? It would be great to have one snapshot of the structure (better if it contains real data) in order to be able to reproduce the problem. In the related bug I remember we have tested a lot of upgrades of groups between 1.6, 1.7 and 1.8 and haven't been able to reproduce the problem. For sure, something in your DB is "different" and causes the problem. It's only a matter of detecting it (to be able to fix it). Ciao |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MDL-8251, groups are used from core, they must be IMO upgraded/installed together with core.