From fa7df704effd43c4a1cf3326b05f3e0be1e53602 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 9 Sep 2007 22:32:37 +0200 Subject: [PATCH] Remove some obsolete db checks Signed-off-by: Florent Bruneau --- bin/cron/checkdb.php | 4 ---- 1 file changed, 4 deletions(-) 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"); -- 2.1.4