From 9517c779eb1eabae55a4e682828a5934813ff9ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= <1536036+zoic21@users.noreply.github.com> Date: Fri, 21 Feb 2025 09:05:30 +0100 Subject: [PATCH] Fix #3034 --- core/class/history.class.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/class/history.class.php b/core/class/history.class.php index 2b5bc2deb8..9c9e4dcd6b 100644 --- a/core/class/history.class.php +++ b/core/class/history.class.php @@ -226,10 +226,6 @@ public static function archive() { DB::Prepare($sql, array()); $sql = 'DELETE FROM historyArch WHERE `value` IS NULL'; DB::Prepare($sql, array()); - $sql = 'DELETE FROM history WHERE `datetime` <= "2000-01-01 01:00:00" OR `datetime` >= "2026-01-01 01:00:00"'; - DB::Prepare($sql, array()); - $sql = 'DELETE FROM historyArch WHERE `datetime` <= "2000-01-01 01:00:00" OR `datetime` >= "2026-01-01 01:00:00"'; - DB::Prepare($sql, array()); $sql = 'DELETE FROM history WHERE `value` IS NULL'; DB::Prepare($sql, array()); $sql = 'DELETE FROM historyArch WHERE `value` IS NULL';