Commit e2dc29a4 authored by Richard Mansfield's avatar Richard Mansfield

Remove old group invites/requests which conflict with the group's current jointype

parent 366a7115
......@@ -1165,6 +1165,11 @@ function xmldb_core_upgrade($oldversion=0) {
}
}
if ($oldversion < 2009080601) {
execute_sql("DELETE FROM {group_member_invite} WHERE \"group\" NOT IN (SELECT id FROM {group} WHERE jointype = 'invite')");
execute_sql("DELETE FROM {group_member_request} WHERE \"group\" NOT IN (SELECT id FROM {group} WHERE jointype = 'request')");
}
return $status;
}
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2009080600;
$config->version = 2009080601;
$config->release = '1.2.0alpha4dev';
$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