]> git.mjollnir.org Git - moodle.git/commitdiff
2.0 has lowercase xmldb objects.
authorstronk7 <stronk7>
Mon, 4 May 2009 14:33:01 +0000 (14:33 +0000)
committerstronk7 <stronk7>
Mon, 4 May 2009 14:33:01 +0000 (14:33 +0000)
lib/db/upgrade.php

index bf10b81f36aac590a958453f13eb8cde9b41a22d..9f945df7a48dfb27256d952b6bb56b480767ffe7 100644 (file)
@@ -1460,8 +1460,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
     }
     if ($result && $oldversion < 2009021801) {
     /// Define field backuptype to be added to backup_log
-        $table = new XMLDBTable('backup_log');
-        $field = new XMLDBField('backuptype');
+        $table = new xmldb_table('backup_log');
         $field = new xmldb_field('backuptype', XMLDB_TYPE_CHAR, '50', null, XMLDB_NOTNULL, null, null, 'info');
     /// Conditionally Launch add field backuptype and set all old records as 'scheduledbackup' records.
         if (!$dbman->field_exists($table, $field)) {