Commit 3764671c authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix up undeletable blog posts


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent b21e0edb
......@@ -1320,6 +1320,15 @@ function xmldb_core_upgrade($oldversion=0) {
add_field($table, $field);
}
if ($oldversion < 2010011300) {
// Clean up the mess left behind by failing to delete blogposts in a transaction
execute_sql("
INSERT INTO {artefact_blog_blogpost} (blogpost)
SELECT id FROM {artefact} WHERE artefacttype = 'blogpost' AND id NOT IN (
SELECT blogpost FROM {artefact_blog_blogpost}
)");
}
return $status;
}
......
......@@ -28,7 +28,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2009120900;
$config->version = 2010011300;
$config->release = '1.3.0dev';
$config->minupgradefrom = 2008040200;
$config->minupgraderelease = '1.0.0 (release tag 1.0.0_RELEASE)';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment