From 32fdb75f2a26e7a7d025c59952fb1f852118354b Mon Sep 17 00:00:00 2001 From: Fabian Helfer Date: Wed, 23 Oct 2024 09:51:05 +0200 Subject: [PATCH] Remove session_reminder_enabled from usr_pref --- .../ILIAS/User/src/Setup/DBUpdateSteps10.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/components/ILIAS/User/src/Setup/DBUpdateSteps10.php b/components/ILIAS/User/src/Setup/DBUpdateSteps10.php index 023150a60853..cf7c7e9e41cb 100755 --- a/components/ILIAS/User/src/Setup/DBUpdateSteps10.php +++ b/components/ILIAS/User/src/Setup/DBUpdateSteps10.php @@ -103,12 +103,18 @@ public function step_3(): void [\ilDBConstants::T_TEXT, \ilDBConstants::T_TEXT, \ilDBConstants::T_INTEGER], ['common', 'session_reminder_lead_time', \ilSessionReminder::SUGGESTED_LEAD_TIME] ); - $query = 'DELETE FROM settings WHERE module = %s AND keyword = %s'; - $this->db->manipulateF( - $query, - [\ilDBConstants::T_TEXT, \ilDBConstants::T_TEXT], - ['common', 'session_reminder_enabled'] - ); } + $query = 'DELETE FROM settings WHERE module = %s AND keyword = %s'; + $this->db->manipulateF( + $query, + [\ilDBConstants::T_TEXT, \ilDBConstants::T_TEXT], + ['common', 'session_reminder_enabled'] + ); + $query = 'DELETE FROM usr_pref WHERE keyword = %s'; + $this->db->manipulateF( + $query, + [\ilDBConstants::T_TEXT], + ['session_reminder_enabled'] + ); } }