X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=ut%2Fcheckdb.php;h=52618fedcb3559953582303f274efa26d300559e;hb=bdc1e8a02cb1cf18e41f4a8421f056c97932b7f3;hp=b846b39324303c334cc15545c9de12ae18dfe3a8;hpb=f8a1899eceabb9648adb85071fab66d49d549337;p=platal.git diff --git a/ut/checkdb.php b/ut/checkdb.php index b846b39..52618fe 100644 --- a/ut/checkdb.php +++ b/ut/checkdb.php @@ -1,6 +1,6 @@ 1'), 'google apps' => - array('SELECT a.alias, g.g_status, eo.storage - FROM email_options AS eo - INNER JOIN aliases AS a ON (a.uid = eo.uid AND a.type = \'a_vie\') - INNER JOIN gapps_accounts AS g ON (g.l_userid = eo.uid) - WHERE FIND_IN_SET(\'googleapps\', eo.storage) > 0 AND g.g_status != \'active\'') + array('SELECT s.email, g.g_status, r.redirect + FROM email_redirect_account AS r + INNER JOIN email_source_account AS s ON (r.uid = s.uid AND s.type = \'forlife\') + INNER JOIN gapps_accounts AS g ON (g.l_userid = r.uid) + WHERE r.type = \'googleapps\' AND r.flags = \'active\' AND g.g_status != \'active\'') ); $tests = array( @@ -189,5 +189,5 @@ class CheckDB extends PlTestCase } -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>