From 4be6e404d2d5aef795443ffa328894650bc41731 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 13 Sep 2010 17:33:01 +0000 Subject: [PATCH] MDL-24116 dropping tables that were used in old xmldb test suite, the tests will be moved to functional db tests in subsequent commits --- lib/db/upgrade.php | 18 ++++++++++++++++++ version.php | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index f37587d633e..48398439cbe 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -5127,6 +5127,24 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); upgrade_main_savepoint(true, 2010091302); } + if ($oldversion < 2010091303) { + // drop all test tables from old xmldb test suite + $table = new xmldb_table('testtable'); + if ($dbman->table_exists($table)) { + $dbman->drop_table($table); + } + $table = new xmldb_table('anothertest'); + if ($dbman->table_exists($table)) { + $dbman->drop_table($table); + } + $table = new xmldb_table('newnameforthetable'); + if ($dbman->table_exists($table)) { + $dbman->drop_table($table); + } + upgrade_main_savepoint(true, 2010091303); + } + + return true; } diff --git a/version.php b/version.php index 3d5df631d78..b3120c16e22 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2010091302; // YYYYMMDD = date of the last version bump +$version = 2010091303; // YYYYMMDD = date of the last version bump // XX = daily increments $release = '2.0 Preview 4+ (Build: 20100913)'; // Human-friendly version name