From: Florent Bruneau Date: Sun, 9 Sep 2007 20:32:37 +0000 (+0200) Subject: Remove some obsolete db checks X-Git-Tag: xorg/0.9.15~170 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fa7df704effd43c4a1cf3326b05f3e0be1e53602;p=platal.git Remove some obsolete db checks Signed-off-by: Florent Bruneau --- diff --git a/bin/cron/checkdb.php b/bin/cron/checkdb.php index 7f51b78..07ccf53 100755 --- a/bin/cron/checkdb.php +++ b/bin/cron/checkdb.php @@ -87,12 +87,8 @@ check("select uid from adresses where pub != 'private' and pub !='ax' and pub != check("select uid from tels where tel_pub != 'private' and tel_pub !='ax' and tel_pub != 'public'", "Utiliseur n'ayant pas de flag de publicite pour un numero de telephone"); /* validite de adresses */ -check("select uid, adrid from adresses where FIND_IN_SET('pro',statut)","Utilisateurs ayant encore une adresse pro dans leurs adresses"); check("select uid, count(adrid) from adresses group by uid having count(adrid) > 7", "Utilisateurs ayant trop d'adresses"); -/* Validite de entreprises */ -check("select uid, count(entrid) from entreprises group by uid having count(entrid) > 2","Utilisateurs ayant trop d'entreprises"); - /* Validite des tables de langues, competences, mentoring*/ check("select uid, count(lid) from langues_ins group by uid having count(lid) > 10","Utilisateurs ayant trop de langues"); check("select uid, count(cid) from competences_ins group by uid having count(cid) > 20","Utilisateurs ayant trop de competences");