From: Stéphane Jacob Date: Fri, 15 Oct 2010 13:47:50 +0000 (+0200) Subject: Adds crons to checked if there are remaining issues due to the merge. X-Git-Tag: xorg/1.0.1~39 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=16ab1e34ebd7327b454e16c7212e0c7891ecf35f;p=platal.git Adds crons to checked if there are remaining issues due to the merge. Signed-off-by: Stéphane Jacob --- diff --git a/bin/cron/checkdb.php b/bin/cron/checkdb.php index a82dfbc..721e5ea 100755 --- a/bin/cron/checkdb.php +++ b/bin/cron/checkdb.php @@ -112,5 +112,11 @@ check("SELECT a.alias AS username, b.alias AS loginbis, b.expire WHERE a.type = 'a_vie'", "Donne la liste des homonymes qui ont un alias égal à leur loginbis depuis plus d'un mois, il est temps de supprimer leur alias."); +// XXX: counts the number of remaining issues due to the merge (to be removed once all merge related issues have been fixed) +check('SELECT COUNT(*) + FROM profile_merge_issues + WHERE issues IS NULL OR issues = \'\'', + 'Dénombre les erreurs dues à la fusion restantes.'); + // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?> diff --git a/bin/cron/clean.php b/bin/cron/clean.php index 153da31..84fade9 100755 --- a/bin/cron/clean.php +++ b/bin/cron/clean.php @@ -62,5 +62,9 @@ query('ALTER TABLE profile_skill_enum query('DELETE FROM search_autocomplete WHERE generated < DATE_SUB(NOW(), INTERVAL 1 DAY)'); +// XXX: cleans profile_merge_issues (to be removed once all merge related issues have been fixed) +query('DELETE FROM profile_merge_issues + WHERE issues IS NULL OR issues = \'\''); + // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>