From: Nik Okuntseff Date: Sun, 12 Jun 2016 17:59:33 +0000 (+0000) Subject: Removed cron_db_cleanup.php from repository to reduce accidental team deletion risk. X-Git-Tag: timetracker_1.19-1~1707 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5ce20fc5d56a32584f8a2d18ae7cde91eb12a5a4;p=timetracker.git Removed cron_db_cleanup.php from repository to reduce accidental team deletion risk. --- diff --git a/cron_db_cleanup.php b/cron_db_cleanup.php deleted file mode 100644 index 268c2fe2..00000000 --- a/cron_db_cleanup.php +++ /dev/null @@ -1,68 +0,0 @@ -\n"; -for ($i = 0; $i < $count; $i++) { - print " deleting team ".$inactive_teams[$i]."
\n"; - $res = ttTeamHelper::delete($inactive_teams[$i]); -} - -if ($count > 0) { - $mdb2 = getConnection(); - $mdb2->exec("OPTIMIZE TABLE tt_client_project_binds"); - $mdb2->exec("OPTIMIZE TABLE tt_client_project_binds"); - $mdb2->exec("OPTIMIZE TABLE tt_clients"); - $mdb2->exec("OPTIMIZE TABLE tt_config"); - $mdb2->exec("OPTIMIZE TABLE tt_custom_field_log"); - $mdb2->exec("OPTIMIZE TABLE tt_custom_field_options"); - $mdb2->exec("OPTIMIZE TABLE tt_custom_fields"); - $mdb2->exec("OPTIMIZE TABLE tt_expense_items"); - $mdb2->exec("OPTIMIZE TABLE tt_fav_reports"); - $mdb2->exec("OPTIMIZE TABLE tt_invoices"); - $mdb2->exec("OPTIMIZE TABLE tt_log"); - $mdb2->exec("OPTIMIZE TABLE tt_project_task_binds"); - $mdb2->exec("OPTIMIZE TABLE tt_projects"); - $mdb2->exec("OPTIMIZE TABLE tt_tasks"); - $mdb2->exec("OPTIMIZE TABLE tt_teams"); - $mdb2->exec("OPTIMIZE TABLE tt_tmp_refs"); - $mdb2->exec("OPTIMIZE TABLE tt_user_project_binds"); - $mdb2->exec("OPTIMIZE TABLE tt_users"); -} - -print "Done!
\n";