X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/72573aa94160317c3ee34c3b779f37878fc1b966..5ce20fc5d56a32584f8a2d18ae7cde91eb12a5a4:/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";