From 9469a3cae1969db3ade0c5640515340c395e04c1 Mon Sep 17 00:00:00 2001 From: Matheus Zych Date: Tue, 14 Apr 2026 10:26:46 +0200 Subject: [PATCH] Test: Add Introduction Column to tst_tests See: https://mantis.ilias.de/view.php?id=47511 `Test10DBUpdateSteps::step_14()` adds an `introduction` column to `tst_tests` (`T_TEXT`, length 4000, default `null`) when it is not already present, so the schema update is safe to re-run. --- .../ILIAS/Test/src/Setup/Test10DBUpdateSteps.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/ILIAS/Test/src/Setup/Test10DBUpdateSteps.php b/components/ILIAS/Test/src/Setup/Test10DBUpdateSteps.php index 4d9078800d9f..7dda7c48cf6a 100644 --- a/components/ILIAS/Test/src/Setup/Test10DBUpdateSteps.php +++ b/components/ILIAS/Test/src/Setup/Test10DBUpdateSteps.php @@ -468,4 +468,19 @@ public function step_13(): void ['operation' => [\ilDBConstants::T_TEXT, 'tst_results']] ); } + + public function step_14(): void + { + if (!$this->db->tableColumnExists('tst_tests', 'introduction')) { + $this->db->addTableColumn( + 'tst_tests', + 'introduction', + [ + 'type' => \ilDBConstants::T_TEXT, + 'length' => 4000, + 'default' => null + ] + ); + } + } }