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