From 5ce20fc5d56a32584f8a2d18ae7cde91eb12a5a4 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sun, 12 Jun 2016 17:59:33 +0000 Subject: [PATCH] Removed cron_db_cleanup.php from repository to reduce accidental team deletion risk. --- cron_db_cleanup.php | 68 --------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 cron_db_cleanup.php 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"; -- 2.20.1