Displays and compares our country and language lists with iso lists.
[platal.git] / bin / cron / clean.php
index 153da31..add5458 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/php5 -q
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -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:
 ?>