Browse files

MDL-29538 core_condition: Rebase with integration removed add table f…

…unction
  • Loading branch information...
1 parent be2534f commit 4eafabc2a663a5c2a0b7eb49e524530bd82f9edb @markn86 markn86 committed May 18, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/db/upgrade.php
View
4 lib/db/upgrade.php
@@ -586,6 +586,10 @@ function xmldb_main_upgrade($oldversion) {
$table->add_key('sourcecmid', XMLDB_KEY_FOREIGN, array('sourcecmid'), 'course_modules', array('id'));
$table->add_key('gradeitemid', XMLDB_KEY_FOREIGN, array('gradeitemid'), 'grade_items', array('id'));
+ if (!$dbman->table_exists($table)) {
+ $dbman->create_table($table);
+ }
+
// Main savepoint reached
upgrade_main_savepoint(true, 2012051100.03);
}

0 comments on commit 4eafabc

Please sign in to comment.