Permalink
Browse files

lib-db MDL-25790 Added code to drop adodb_logsql if it exists

  • Loading branch information...
1 parent 43c9845 commit 15257dd181f3b51ea98e078faf32b4c4fec6a93b Sam Hemelryk committed Jan 14, 2011
Showing with 12 additions and 1 deletion.
  1. +11 −0 lib/db/upgrade.php
  2. +1 −1 version.php
View
@@ -5926,6 +5926,17 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2011011413);
}
+ if ($oldversion < 2011011414) {
+ // Drop the adodb_logsql table if it exists... it was never actually used anyway.
+ $table = new xmldb_table('adodb_logsql');
+
+ if ($dbman->table_exists($table)) {
+ $dbman->drop_table($table);
+ }
+
+ upgrade_main_savepoint(true, 2011011414);
+ }
+
return true;
}
View
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
-$version = 2011011413; // YYYYMMDD = date of the last version bump
+$version = 2011011414; // YYYYMMDD = date of the last version bump
// XX = daily increments
$release = '2.0.1+ (Build: 20110112)'; // Human-friendly version name

0 comments on commit 15257dd

Please sign in to comment.