From 913246c0867ab88ffaeaad3d147c699ada62f309 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 29 Nov 2013 14:43:47 +1300 Subject: [PATCH] add missing grade_items_history upgrade step --- locallib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/locallib.php b/locallib.php index 4828047..b2e6552 100644 --- 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, ?, ?)