From 4332cd977c16f2e612818a09fd18ea2da4fb9edb Mon Sep 17 00:00:00 2001 From: Lukas Scharmer Date: Wed, 2 Sep 2026 13:07:45 +0200 Subject: [PATCH] Session: Change col details to type text in table event --- .../Session/classes/Setup/UpdateStepsV12.php | 43 +++++++++++++++++++ .../Setup/class.ilSessionSetupAgent.php | 8 +++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 components/ILIAS/Session/classes/Setup/UpdateStepsV12.php diff --git a/components/ILIAS/Session/classes/Setup/UpdateStepsV12.php b/components/ILIAS/Session/classes/Setup/UpdateStepsV12.php new file mode 100644 index 000000000000..2b769b8f6798 --- /dev/null +++ b/components/ILIAS/Session/classes/Setup/UpdateStepsV12.php @@ -0,0 +1,43 @@ +db = $db; + } + + public function step_1(): void + { + $this->db->modifyTableColumn('event', 'details', [ + 'type' => ilDBConstants::T_CLOB, + 'length' => 4000, + ]); + } +} diff --git a/components/ILIAS/Session/classes/Setup/class.ilSessionSetupAgent.php b/components/ILIAS/Session/classes/Setup/class.ilSessionSetupAgent.php index 345045009756..1f029f984f67 100755 --- a/components/ILIAS/Session/classes/Setup/class.ilSessionSetupAgent.php +++ b/components/ILIAS/Session/classes/Setup/class.ilSessionSetupAgent.php @@ -20,6 +20,7 @@ use ILIAS\Setup; use ILIAS\Setup\Config; +use ILIAS\Session\Setup\UpdateStepsV12; /** * @author Tim Schmitz @@ -28,7 +29,12 @@ class ilSessionSetupAgent extends Setup\Agent\NullAgent { public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective { - return new ilDatabaseUpdateStepsExecutedObjective(new ilSessionDBUpdateSteps9()); + return new Setup\ObjectiveCollection( + 'Update Session component', + false, + new ilDatabaseUpdateStepsExecutedObjective(new ilSessionDBUpdateSteps9()), + new ilDatabaseUpdateStepsExecutedObjective(new UpdateStepsV12()) + ); } public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective