MDL-13553 - upgrade path to correctly identify the type of each tag_instance
This commit is contained in:
@@ -2846,6 +2846,10 @@ function xmldb_main_upgrade($oldversion=0) {
|
||||
upgrade_main_savepoint($result, 2007101508.03);
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2007101508.04) {
|
||||
set_field('tag_instance', 'itemtype', 'post', 'itemtype', 'blog');
|
||||
upgrade_main_savepoint($result, 2007101508.04);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
+1
-1
@@ -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 = 2007101508.03; // YYYYMMDD = date of the 1.9 branch (don't change)
|
||||
$version = 2007101508.04; // YYYYMMDD = date of the 1.9 branch (don't change)
|
||||
// X = release number 1.9.[0,1,2,3...]
|
||||
// Y = micro-increments between releases
|
||||
|
||||
|
||||
Reference in New Issue
Block a user