Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…unction
  • Loading branch information...
commit 4eafabc2a663a5c2a0b7eb49e524530bd82f9edb 1 parent be2534f
Mark Nelson markn86 authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/db/upgrade.php
4 lib/db/upgrade.php
View
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.