Mass update

This commit is contained in:
2022-12-30 21:03:37 +02:00
parent 7a5dfd22a7
commit e9ec7eb2f2
172 changed files with 14838 additions and 35914 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
use Core\Db;
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'autoload.php';
/**
* ×èñòêà è ñáðîñ ñ÷åò÷èêîâ ïðè îòñóòñòâèè áîåâ ÷òîá íå ëàìàëñÿ ëîã.
* Çàïóñê êàæäûå òðè ÷àñà â Õ ÷àñîâ 20 ìèíóò?
*/
Db::sql('delete from battle_end where time < unix_timestamp() - 24 * 60 * 60');
Db::sql('delete from battle_last where time < unix_timestamp() - 24 * 60 * 60');
Db::sql('delete from battle_out where time < unix_timestamp() - 24 * 60 * 60');
Db::sql('delete from battle_stat where time < unix_timestamp() - 24 * 60 * 60');
Db::sql('delete from battle_logs where time < unix_timestamp() - 24 * 60 * 60');
Db::sql('delete from battle_logs_save where time < unix_timestamp() - 24 * 60 * 60');
Db::sql('delete from battle_users where time_enter between 1 and unix_timestamp() - 24 * 60 * 60');
Db::sql('delete from battle where time_over between 1 and unix_timestamp() - 24 * 60 * 60');