rating MDL-21657 changed table from ratings (plural) to rating (singular)

This commit is contained in:
Andrew Davis
2010-03-16 09:20:23 +00:00
parent 19fae1198c
commit 0f51ca7922
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -3051,7 +3051,13 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
upgrade_main_savepoint($result, 2010021800);
}
if ($result && $oldversion < 2010031600) {
if ($result && $oldversion < 2010031602) {
//drop the erroneously created ratings table
$table = new xmldb_table('ratings');
if ($dbman->table_exists($table)) {
$dbman->drop_table($table);
}
//create the rating table (replaces module specific rating implementations)
$table = new xmldb_table('rating');
@@ -3124,7 +3130,7 @@ inner join {data} d on d.id=re.dataid';
//todo drop forum_ratings, data_ratings and glossary_ratings
upgrade_main_savepoint($result, 2010031600);
upgrade_main_savepoint($result, 2010031602);
}
return $result;
+1 -1
View File
@@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2010031600; // YYYYMMDD = date of the last version bump
$version = 2010031602; // YYYYMMDD = date of the last version bump
// XX = daily increments
$release = '2.0 dev (Build: 20100316)'; // Human-friendly version name