projects
/
moodle-mod_attendance.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f0afa1
)
add missing grade_items_history upgrade step
author
Dan Marsden
<dan@danmarsden.com>
Fri, 29 Nov 2013 01:43:47 +0000
(14:43 +1300)
committer
Dan Marsden
<dan@danmarsden.com>
Fri, 29 Nov 2013 01:43:47 +0000
(14:43 +1300)
locallib.php
patch
|
blob
|
history
diff --git
a/locallib.php
b/locallib.php
index
4828047
..
b2e6552
100644
(file)
--- a/
locallib.php
+++ b/
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, ?, ?)