MDL-26312 Workshop: data integrity check to detect eventual course_modules corruption
commitf593111b677162e247d1d237c1cc0348f4a3bbdb
authorDavid Mudrak <david@moodle.com>
Fri, 11 Feb 2011 14:41:35 +0000 (11 15:41 +0100)
committerDavid Mudrak <david@moodle.com>
Mon, 14 Feb 2011 09:11:42 +0000 (14 10:11 +0100)
tree5666a996ed7745ec7d13341c2f91c4343d025596
parentd0fb170520ea16bb5c745041ba2352e5511aa140
MDL-26312 Workshop: data integrity check to detect eventual course_modules corruption

Because of a bug in Workshop upgrade code, multiple workshop course_modules can
potentially point to a single workshop instance. The chance is pretty low as in most cases,
the upgrade failed. But under certain circumstances, workshop could be upgraded with
this data integrity issue. We want to detect it now and let the admin know.
mod/workshop/db/upgrade.php
mod/workshop/version.php