Browse Source

add missing grade_items_history upgrade step

MOODLE_26_STABLE
Dan Marsden 11 years ago
parent
commit
913246c086
  1. 5
      locallib.php

5
locallib.php

@ -1461,6 +1461,11 @@ function attforblock_upgrade() {
WHERE itemmodule = ?";
$DB->execute($sql, array('attendance', 'attforblock'));
$sql = "UPDATE {grade_items_history}
SET itemmodule = 'attendance'
WHERE itemmodule = 'attforblock'";
$DB->execute($sql);
// Now convert role capabilities to 'attendance'
$sql = "UPDATE {role_capabilities}
SET capability = REPLACE(capability, ?, ?)

Loading…
Cancel
Save