diff --git a/Services/Style/Content/Setup/class.ilStyle9HotfixDBUpdateSteps.php b/Services/Style/Content/Setup/class.ilStyle9HotfixDBUpdateSteps.php new file mode 100644 index 000000000000..79dd61cdd57a --- /dev/null +++ b/Services/Style/Content/Setup/class.ilStyle9HotfixDBUpdateSteps.php @@ -0,0 +1,40 @@ +db = $db; + } + + public function step_1() + { + $this->db->update( + "style_data", + [ + "uptodate" => ["integer", 0] + ], + [ // where + "uptodate" => ["integer", 1] + ] + ); + } + +} diff --git a/Services/Style/classes/Setup/class.ContentStyleAgent.php b/Services/Style/classes/Setup/class.ContentStyleAgent.php index 1fe5c32c0d22..1c9aa9ad93c1 100644 --- a/Services/Style/classes/Setup/class.ContentStyleAgent.php +++ b/Services/Style/classes/Setup/class.ContentStyleAgent.php @@ -24,6 +24,11 @@ class ContentStyleAgent extends Setup\Agent\NullAgent { public function getUpdateObjective(Setup\Config $config = null): Setup\Objective { - return new \ilDatabaseUpdateStepsExecutedObjective(new ilStyleDBUpdateSteps()); + return new Setup\ObjectiveCollection( + 'Content Style Update', + true, + new \ilDatabaseUpdateStepsExecutedObjective(new ilStyleDBUpdateSteps()), + new \ilDatabaseUpdateStepsExecutedObjective(new ilStyle9HotfixDBUpdateSteps()) + ); } }